Skip to content

Commit

Permalink
add winget publish step
Browse files Browse the repository at this point in the history
  • Loading branch information
bc3tech committed Jul 13, 2024
1 parent d80945e commit c2e7d3e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build-and-pack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,15 @@ jobs:
tag: ${{ env.APP_VERSION }}
prerelease: ${{ github.ref != 'refs/heads/main'}}
token: ${{ secrets.GITHUB_TOKEN }}
publish-winget:
needs:
- create-release
runs-on: ubuntu-latest
steps:
- name: Update Packages
uses: michidk/winget-updater@v1
with:
komac-token: ${{ secrets.GITHUB_TOKEN }}
identifier: BC3Tech.FileSorter
repo: bc3tech/filesorter
url: https://github.com/bc3tech/filesorter/releases/download/{VERSION}/FileSorter_{VERSION}.zip
19 changes: 15 additions & 4 deletions .github/workflows/pr-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,23 @@ on:
- "LICENSE"

jobs:
build:
build-release:
runs-on: windows-latest
needs: []
steps:
- name: debug
run: "echo app version: $APP_VERSION"
- uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x

- name: dotnet build
run: dotnet build -c release
build-debug:
runs-on: windows-latest
needs: []
steps:
- uses: actions/checkout@v4

- name: Setup .NET
Expand All @@ -22,4 +33,4 @@ jobs:
dotnet-version: 8.x

- name: dotnet build
run: dotnet build --self-contained -r win-x64 -f net8.0 -c release
run: dotnet build -c debug

0 comments on commit c2e7d3e

Please sign in to comment.