Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
needs: build-and-test
if: github.event_name == 'release'
runs-on: windows-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4

Expand All @@ -46,15 +48,11 @@ jobs:
- name: Publish
run: dotnet publish MyLibrary/MyLibrary.csproj -c Release -r win-x64 --self-contained -o publish/win

- name: Get version
id: version
- name: Pack with Velopack
run: |
$version = "${{ github.event.release.tag_name }}" -replace '^v', ''
echo "VERSION=$version" >> $env:GITHUB_OUTPUT
vpk pack -u MyLibrary -v $version -p publish/win -e MyLibrary.exe
shell: pwsh

- name: Pack with Velopack
run: vpk pack -u MyLibrary -v ${{ steps.version.outputs.VERSION }} -p publish/win -e MyLibrary.exe

- name: Upload to GitHub Release
run: vpk upload github --repoUrl https://github.com/edwardyum/MyLibrary --token ${{ secrets.GITHUB_TOKEN }} --tag ${{ github.event.release.tag_name }}
Loading