Skip to content

Trigger deployment on push to main and release #1

Trigger deployment on push to main and release

Trigger deployment on push to main and release #1

Workflow file for this run

name: CI/CD Workflow
on:
push:
release:
types:
- published
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Run tests
run: |
echo "TODO: Replace this with actual tests"
deploy-to-staging:

Check failure on line 20 in .github/workflows/cicd.yml

View workflow run for this annotation

GitHub Actions / CI/CD Workflow

Invalid workflow file

The workflow is not valid. .github/workflows/cicd.yml (Line: 20, Col: 3): Error calling workflow 'alukach/example-github-actions-deployment-workflow/.github/workflows/deploy.yml@88fbf5f8c6b2cd0d76b1bce619f09377b1f75ec8'. The workflow is requesting 'id-token: write', but is only allowed 'id-token: none'.
needs: test
if: github.ref_name == 'main'
concurrency: staging
uses: "./.github/workflows/deploy.yml"
with:
environment: staging
secrets: inherit
deploy-to-production:
needs: test
if: github.ref_name == 'production'
concurrency: production
uses: "./.github/workflows/deploy.yml"
with:
environment: production
secrets: inherit