-
Notifications
You must be signed in to change notification settings - Fork 14
70 lines (66 loc) · 2.42 KB
/
deploy-to-testbase.yml
File metadata and controls
70 lines (66 loc) · 2.42 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
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
name: Build and deploy to Test Base
on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- 'Best-Practices/HeightGained-GitHub-Pipeline-Integration/HeightGained/**'
pull_request:
branches: [ main ]
paths:
- 'Best-Practices/HeightGained-GitHub-Pipeline-Integration/HeightGained/**'
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
working-directory: ./Best-Practices/HeightGained-GitHub-Pipeline-Integration/HeightGained
- name: Build
run: dotnet build --configuration Release --no-restore
working-directory: ./Best-Practices/HeightGained-GitHub-Pipeline-Integration/HeightGained
- name: Compress to Package
run: ./compress.ps1
working-directory: ./Best-Practices/HeightGained-GitHub-Pipeline-Integration/HeightGained/Utilities
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install pip
run: |
python -m pip install --upgrade pip
- name: Install azure-identity
run: |
pip install azure-identity
- name: Install azure-storage-blob
run: |
pip install azure-storage-blob
- name: Install azure-testbase
run: |
pip install azure-mgmt-testbase==1.0.0b1
- name: Run test base script
id: testbase
env:
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
RESOURCE_GROUP_NAME: ${{ secrets.RESOURCE_GROUP_NAME }}
TESTBASE_ACCOUNT_NAME: ${{ secrets.TESTBASE_ACCOUNT_NAME }}
APPLICATION_NAME: HeightGained
APPLICATION_VERSION: 1.0.0
OSS_TO_TEST: Windows 10 21H2, Windows 11 21H2
PACKAGE_FILE_PATH: ./HeightGained.zip
SCRIPT_PATH_INSTALL: Scripts/install.ps1
SCRIPT_PATH_LAUNCH: Scripts/launch.ps1
SCRIPT_PATH_CLOSE: Scripts/close.ps1
SCRIPT_PATH_UNINSTALL: Scripts/uninstall.ps1
run: |
echo Running upload_package.py
python ./upload_package.py
working-directory: ./Best-Practices/HeightGained-GitHub-Pipeline-Integration/HeightGained/Utilities