Skip to content

Commit

Permalink
Enabled Chocolatey scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
lowleveldesign committed Jul 26, 2021
1 parent 5b7d568 commit bedc9ff
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 19 deletions.
35 changes: 17 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,23 @@ jobs:
name: wtrace
path: bin\wtrace\net472\wtrace.exe

# Temporarily disabling Chocolatey publish until the first package gets accepted: https://community.chocolatey.org/packages/wtrace/3.1.21167.4
# - name: Copy the binary to Chocolatey path
# run: Copy-Item bin\wtrace\net472\wtrace.exe choco\tools
- name: Copy the binary to Chocolatey path
run: Copy-Item bin\wtrace\net472\wtrace.exe choco\tools

# - run: scripts/Print-FileHashes.ps1 -FilePath choco\tools\wtrace.exe >> choco\tools\VERIFICATION.txt
# shell: pwsh
- run: scripts/Print-FileHashes.ps1 -FilePath choco\tools\wtrace.exe >> choco\tools\VERIFICATION.txt
shell: pwsh

# - name: Build Chocolatey package
# run: choco pack
# working-directory: choco
- name: Build Chocolatey package
run: choco pack
working-directory: choco

# - uses: actions/upload-artifact@v2
# 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
- uses: actions/upload-artifact@v2
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Wtrace [spelled: *wɪtreɪs*] is a command-line tool for recording trace events

Additionally, it has various **filtering capabilities** and may also dump statistics at the end of the trace session. As it's just a standard command-line tool, you may pipe its output to another tool for further processing.

It works on Windows 8.1+ and requires .NET 4.7.2+. Wtrace is just one executable, wtrace.exe, and you may download it from the [release page](https://github.com/lowleveldesign/wtrace/releases).
It works on Windows 8.1+ and requires .NET 4.7.2+. Wtrace is just one executable, wtrace.exe, and you may download it from the [release page](https://github.com/lowleveldesign/wtrace/releases) or install it with [Chocolatey](https://chocolatey.org/): `choco install wtrace`.

The available options are listed below. Please check the [wtrace documentation page](https://wtrace.net/documentation/wtrace) to learn details about them with some usage examples.

Expand Down

0 comments on commit bedc9ff

Please sign in to comment.