Skip to content

Commit

Permalink
fix environment, draft release deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
philspokas committed Nov 28, 2023
1 parent 1447ae4 commit 79d7614
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/deploy-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Deploy Release

on:
release:
types: [published]

jobs:

deploy-test:
uses: ./.github/workflows/deploy-web.yml
with:
deploy-env: test
secrets: inherit

deploy-prod:
runs-on: ubuntu-latest
environment: prod
needs: deploy-test
steps:
- run: |
echo ${{ secrets.ENVIRONMENTSECRET }}
echo "Deployment is $deploymentvalue"
name: deploy
# ...deployment-specific steps
2 changes: 1 addition & 1 deletion .github/workflows/deploy-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
build_and_deploy_job:
runs-on: ubuntu-latest
name: Build and Deploy Job
environment: ${{ inputs.environment }}
environment: ${{ inputs.deploy-env }}
steps:
- uses: actions/checkout@v3
- name: 'Login to Azure'
Expand Down

0 comments on commit 79d7614

Please sign in to comment.