This repository has been archived by the owner on Oct 7, 2024. It is now read-only.
Merge pull request #144 from contember/content-migrations #116
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy projects | |
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install dependencies | |
run: npm ci | |
- name: Validate Schema | |
uses: docker://contember/cli:1.2.1 | |
with: | |
args: project:validate . | |
- name: Deploy | |
uses: docker://contember/cli:1.2.1 | |
env: | |
CONTEMBER_API_URL: https://api-doc-v3.eu.contember.cloud | |
CONTEMBER_API_TOKEN: ${{ secrets.CONTEMBER_DEPLOY_TOKEN }} | |
CONTEMBER_PROJECT_NAME: doc-v3 | |
with: | |
args: deploy doc-v3 --yes |