generated from juliandittmann/AL.Template
-
Notifications
You must be signed in to change notification settings - Fork 0
104 lines (89 loc) · 2.89 KB
/
ci.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
paths-ignore:
- 'README.md'
- '.github/**'
- 'Docs/**'
workflow_dispatch:
push:
paths-ignore:
- 'README.md'
- '.github/**'
- 'Docs/**'
env:
version: ci
appVersion: '19.1'
appBuild: ${{github.run_number}}
appRevision: 0
defaults:
run:
shell: PowerShell
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Azure Login
uses: Azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Azure key vault - Get Secrets
uses: Azure/[email protected]
with:
keyvault: "juliandittmann"
secrets: 'CodeSignCertPfxFile, CodeSignCertPfxPassword, InsiderSasToken'
id: azureGetSecretAction
- name: Run pipeline
uses: juliandittmann/[email protected]
with:
version: ${{env.version}}
appVersion: ${{env.appVersion}}
appBuild: ${{env.appBuild}}
appRevision: ${{env.appRevision}}
ApplicationInsightsConnectionString: ${{ secrets.ApplicationInsightsConnectionString }}
InsiderSasToken: ${{ steps.azureGetSecretAction.outputs.InsiderSasToken }}
CodeSignCertPfxFile: ${{ steps.azureGetSecretAction.outputs.CodeSignCertPfxFile }}
CodeSignCertPfxPassword: ${{ steps.azureGetSecretAction.outputs.CodeSignCertPfxPassword }}
- name: Save manifest
run: |
@{ "Name" = "${{ github.event.repository.name }}"; "Version" = "${{env.appVersion}}.${{env.appBuild}}.${{env.appRevision}}" } | ConvertTo-Json | Set-Content "output\manifest.json"
- name: Publish Test Results
if: always()
uses: mikepenz/action-junit-report@v1
with:
report_paths: 'testresults*.xml'
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish Artifacts - Apps
uses: actions/upload-artifact@v2
with:
name: Apps
path: output/Apps/
if-no-files-found: ignore
- name: Publish Artifacts - Runtime Packages
uses: actions/upload-artifact@v2
with:
name: RuntimePackages
path: output/RuntimePackages/
if-no-files-found: ignore
- name: Publish Artifacts - Test Apps
uses: actions/upload-artifact@v2
with:
name: TestApps
path: output/TestApps/
if-no-files-found: ignore
- name: Publish Artifacts - Test Results
uses: actions/upload-artifact@v2
with:
name: TestResults
path: output/testresults*.xml
if-no-files-found: ignore
- name: Publish Artifacts - Manifest
uses: actions/upload-artifact@v2
with:
name: Manifest
path: output/manifest.json
if-no-files-found: ignore