This repository has been archived by the owner on Aug 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
65 lines (56 loc) · 2.13 KB
/
package-notice-management.yml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Notice Management (Package)
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'deploy/notice-management.bicep'
- '.github/workflows/package-notice-management.yml'
- 'src/AzureDeprecation.Runtimes.AzureFunctions/*'
- 'src/AzureDeprecation.Integrations.GitHub/*'
- 'src/AzureDeprecation.Notices.Management/*'
- 'src/AzureDeprecation.Contracts/*'
env:
OUTPUT_PATH: ${{ github.workspace }}/.output
ARTIFACT_NAME: notice-management
jobs:
package:
name: Package Notice Management
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v2
- name: Setup .NET v${{ env.DOTNET_VERSION }}
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Package Azure Function Artifact
run: dotnet publish ./src/AzureDeprecation.Notices.Management/AzureDeprecation.Notices.Management.csproj --configuration Release --output ${{ env.OUTPUT_PATH }}/function
- name: Publish Azure Function Artifact
uses: actions/upload-artifact@v2
with:
name: ${{ env.ARTIFACT_NAME }}
path: ${{ env.OUTPUT_PATH }}
- name: Publish Bicep template to Artifact
uses: actions/upload-artifact@v2
with:
name: ${{ env.ARTIFACT_NAME }}
path: deploy/notice-management.bicep
- name: Publish ARM template parameters (Tokenized) to Artifact
uses: actions/upload-artifact@v2
with:
name: ${{ env.ARTIFACT_NAME }}
path: deploy/notice-management.parameters.json
# Since tokenization is a pain, so we work around it
- name: Publish ARM template parameters (Staging) to Artifact
uses: actions/upload-artifact@v2
with:
name: ${{ env.ARTIFACT_NAME }}
path: deploy/notice-management.parameters.staging.json
# Since tokenization is a pain, so we work around it
- name: Publish ARM template parameters (Production) to Artifact
uses: actions/upload-artifact@v2
with:
name: ${{ env.ARTIFACT_NAME }}
path: deploy/notice-management.parameters.production.json