Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |