-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (59 loc) · 1.9 KB
/
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
52
53
54
55
56
57
58
59
on:
release:
types:
- published
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: "windows-latest"
rid: "win-x64"
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core 8.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.0.300"
- name: archiving dotnet tool
run: "powershell ./build.ps1 --target Archive BuildInstaller --configuration Release --runtime \"${{matrix.rid}}\""
- name: upload artifacts
uses: actions/upload-artifact@v4
with:
name: "WEventViewer-win-x64"
path: "dist/publish/Release/${{matrix.rid}}/WEventViewer-${{matrix.rid}}.zip"
- name: upload installer
uses: actions/upload-artifact@v4
with:
name: "WEventViewer-installer"
path: "dist/installer/Release/en-US/WEventViewer.Installer.msi"
release:
needs: build
runs-on: "windows-latest"
permissions:
contents: write
steps:
- uses: actions/checkout@v1
- name: download WEventViewer.zip
uses: actions/download-artifact@v4
with:
path: artifacts
name: WEventViewer-win-x64
- name: download WEventViewer.Installer
uses: actions/download-artifact@v4
with:
path: artifacts
name: WEventViewer-installer
- name: list files
run: "Get-ChildItem -recurse artifacts"
- name: upload zip to gh release
run: gh release upload ${{github.event.release.tag_name}} artifacts/WEventViewer-win-x64.zip
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: upload msi to gh release
run: gh release upload ${{github.event.release.tag_name}} artifacts/WEventViewer.Installer.msi
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}