Fix the name of the api token secret. #8
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: Deployment | |
on: | |
push: | |
branches: | |
- main | |
- dev* | |
workflow_dispatch: | |
env: | |
deployment-value: "test deployment value" | |
jobs: | |
deploy-dev: | |
runs-on: ubuntu-latest | |
environment: dev | |
steps: | |
- run: | | |
printenv | |
echo "Secrets:" | |
echo '${{ secrets.ENVIRONMENTSECRET }}' | |
echo "Variable:" | |
echo 'env var ${{ env.deployment-value }}' | |
name: deploy | |
# ...deployment-specific steps | |
deploy-test: | |
runs-on: ubuntu-latest | |
environment: test | |
needs: deploy-dev | |
steps: | |
- run: | | |
echo ${{ secrets.ENVIRONMENTSECRET }} | |
echo ${{ vars.DEPLOYMENT }} | |
name: deploy | |
# ...deployment-specific steps | |
deploy-prod: | |
runs-on: ubuntu-latest | |
environment: prod | |
needs: deploy-test | |
steps: | |
- run: | | |
echo ${{ secrets.ENVIRONMENTSECRET }} | |
echo ${{ vars.DEPLOYMENT }} | |
name: deploy | |
# ...deployment-specific steps |