Skip to content

Updated GH actions

Updated GH actions #12

Workflow file for this run

name: release
on:
push:
tags:
- '*'
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup nuget
uses: nuget/setup-nuget@v1
- run: |
Invoke-WebRequest -OutFile Update-AssemblyInfoVersionFiles.ps1 https://gist.githubusercontent.com/lowleveldesign/663de4e0d5a071f938e6f7c82d7ca9a0/raw/Update-AssemblyInfoVersionFiles.ps1
./Update-AssemblyInfoVersionFiles.ps1
shell: pwsh
- name: Restore packages
run: nuget restore wtrace.sln
- name: Setup MSBuild.exe
uses: microsoft/[email protected]
- name: Build Release using MSBuild
run: msbuild wtrace.sln -m /p:Configuration=Release
- uses: actions/upload-artifact@v4
with:
name: wtrace
path: bin\wtrace\net48\wtrace.exe
- name: Copy the binary to Chocolatey path
run: Copy-Item bin\wtrace\net48\wtrace.exe choco\tools
- run: |
Invoke-WebRequest -OutFile Print-FileHashes.ps1 https://gist.githubusercontent.com/lowleveldesign/f1afd42662ee8dabe07cf8cbfe25e6a1/raw/Print-FileHashes.ps1
./Print-FileHashes.ps1 -FilePath choco\tools\wtrace.exe >> choco\tools\VERIFICATION.txt
shell: pwsh
- name: Build Chocolatey package
run: choco pack
working-directory: choco
- uses: actions/upload-artifact@v4
with:
name: wtrace-pkg
path: choco\wtrace.*.nupkg
- name: Release Chocolatey package
run: choco push $(Resolve-Path "wtrace.*.nupkg") -s https://push.chocolatey.org/ -k "$env:CHOCO_KEY"
env:
CHOCO_KEY: ${{ secrets.CHOCO_KEY }}
working-directory: choco