-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (30 loc) · 1.1 KB
/
Copy pathAHK.GitHub.Monitor-deploy.yml
File metadata and controls
36 lines (30 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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.