Skip to content

Add deployment scripts for dev and staging, and test out running the … #46

Add deployment scripts for dev and staging, and test out running the …

Add deployment scripts for dev and staging, and test out running the … #46

Workflow file for this run

name: CI
on: push
jobs:
lint:
uses: ./.github/workflows/lint.yaml
test:
uses: ./.github/workflows/test.yaml
deploy:
if: contains(github.ref, 'master')
needs: [lint, test]
uses: ./.github/workflows/deploy-production.yaml
deploy:

Check failure on line 17 in .github/workflows/ci.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yaml

Invalid workflow file

You have an error in your yaml syntax on line 17
if: contains(github.ref, 'dev')
needs: [lint, test]
uses: ./.github/workflows/deploy-dev.yaml
deploy:
if: contains(github.ref, 'staging')
needs: [lint, test]
uses: ./.github/workflows/deploy-staging.yaml
# this is to test a deployment script
deploy:
if: contains(github.ref, 'chore/github-actions')
needs: [lint, test]
uses: ./.github/workflows/deploy-dev.yaml