-
Notifications
You must be signed in to change notification settings - Fork 62
51 lines (39 loc) · 1.56 KB
/
test-release.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
name: test-release
on:
push:
tags:
- 'test-*'
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x' # SDK Version to use.
- run: dotnet test -c release
working-directory: ./procgov-tests
- run: dotnet publish -c release -r win-x86 --self-contained
working-directory: ./procgov
- run: dotnet publish -c release -r win-x64 --self-contained
working-directory: ./procgov
- name: Copy artifacts
run: |
New-Item -Type Directory -Path artifacts
Copy-Item -Path "procgov/bin/release/net8.0-windows/win-x86/publish/procgov.exe" -Destination "artifacts/procgov32.exe"
Copy-Item -Path "procgov/bin/release/net8.0-windows/win-x86/publish/procgov.pdb" -Destination "artifacts/procgov32.pdb"
Copy-Item -Path "procgov/bin/release/net8.0-windows/win-x64/publish/procgov.exe" -Destination "artifacts/procgov64.exe"
Copy-Item -Path "procgov/bin/release/net8.0-windows/win-x64/publish/procgov.pdb" -Destination "artifacts/procgov64.pdb"
- name: Zip binaries
run: |
Compress-Archive -Path "artifacts/*.exe", "artifacts/*.pdb" -DestinationPath "procgov.zip"
# - uses: actions/upload-artifact@v4
# with:
# name: procgov
# path: artifacts/*
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.WINGET_GH_TOKEN }}"
automatic_release_tag: "test-release"
prerelease: true
files: procgov.zip