Deploy AHK.GitHub.Monitor #8
This file contains hidden or 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 AHK.GitHub.Monitor | |
| on: | |
| # Trigger the workflow on a push to the main branch. | |
| push: | |
| branches: dev | |
| # Allows you to run this workflow manually (for any branch) from the Actions tab. | |
| workflow_dispatch: | |
| env: | |
| artifactName: buildArtifact | |
| jobs: | |
| # 👇 Call the build workflow to create the artifacts to deploy, and provide the artifact name. | |
| build: | |
| uses: ./.github/workflows/AHK.GitHub.Monitor-build.yml | |
| with: | |
| artifactName: ${{ github.env.artifactName }} | |
| secrets: inherit # Pass secrets to the build workflow, if necessary. | |
| deploy-to-test: | |
| needs: build | |
| uses: ./.github/workflows/AHK.GitHub.Monitor-deploy.template.yml | |
| with: | |
| environmentName: test | |
| artifactName: ${{ github.env.artifactName }} | |
| secrets: inherit # Pass repository secrets to the deployment workflow. | |
| deploy-to-production: | |
| needs: deploy-to-test | |
| uses: ./.github/workflows/AHK.GitHub.Monitor-deploy.template.yml | |
| with: | |
| environmentName: production | |
| artifactName: ${{ github.env.artifactName }} | |
| secrets: inherit # Pass repository secrets to the deployment workflow. |