Skip to content

Commit

Permalink
🔧 Try add csproj versioning to release action
Browse files Browse the repository at this point in the history
  • Loading branch information
russkyc committed Feb 3, 2024
1 parent 174ae06 commit 647bf1a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
26 changes: 16 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,30 +25,36 @@ jobs:

- name: Restore Dependencies
run: dotnet restore

- name: Get version
id: package_version
uses: KageKirin/get-csproj-version@v0
with:
file: D:/a/showcase-pdf/showcase-pdf/Showcase.csproj

- name: Setup PupNet
run: dotnet tool install -g KuiperZone.PupNet

- name: Build x86 Zip
run: pupnet -r win-x86 -y -k zip -o showcase-pdf-win-x86.zip
run: pupnet -r win-x86 -y -k zip -v ${{ steps.package_version.outputs.version }} -o showcase-pdf-win-${{ steps.package_version.outputs.version }}-x86.zip

- name: Build x64 Zip
run: pupnet -r win-x64 -y -k zip -o showcase-pdf-win-x64.zip
run: pupnet -r win-x64 -y -k zip -v ${{ steps.package_version.outputs.version }} -o showcase-pdf-win-${{ steps.package_version.outputs.version }}-x64.zip

- name: Build x86 Setup
run: pupnet -r win-x86 -y -k setup -o showcase-pdf-win-installer-x86.exe
run: pupnet -r win-x86 -y -k setup -v ${{ steps.package_version.outputs.version }} -o showcase-pdf-win-${{ steps.package_version.outputs.version }}-installer-x86.exe

- name: Build x64 Setup
run: pupnet -r win-x64 -y -k setup -o showcase-pdf-win-installer-x64.exe
run: pupnet -r win-x64 -y -k setup -v ${{ steps.package_version.outputs.version }} -o showcase-pdf-win-${{ steps.package_version.outputs.version }}-installer-x64.exe

- name: Publish Release
uses: softprops/action-gh-release@v1
with:
name: '🎉 Showcase PDF Release'
name: '🎉 Showcase PDF ${{ steps.package_version.outputs.version }} Release'
body: 'Latest binary releases for Showcase PDF'
tag_name: latest
tag_name: 'v${{ steps.package_version.outputs.version }}'
files: |
D:/a/showcase-pdf/showcase-pdf/Deploy/bin/showcase-pdf-win-x86.zip
D:/a/showcase-pdf/showcase-pdf/Deploy/bin/showcase-pdf-win-x64.zip
D:/a/showcase-pdf/showcase-pdf/Deploy/bin/showcase-pdf-win-installer-x86.exe
D:/a/showcase-pdf/showcase-pdf/Deploy/bin/showcase-pdf-win-installer-x64.exe
D:/a/showcase-pdf/showcase-pdf/Deploy/bin/showcase-pdf-win-${{ steps.package_version.outputs.version }}-x86.zip
D:/a/showcase-pdf/showcase-pdf/Deploy/bin/showcase-pdf-win-${{ steps.package_version.outputs.version }}-x64.zip
D:/a/showcase-pdf/showcase-pdf/Deploy/bin/showcase-pdf-win-${{ steps.package_version.outputs.version }}-installer-x86.exe
D:/a/showcase-pdf/showcase-pdf/Deploy/bin/showcase-pdf-win-${{ steps.package_version.outputs.version }}-installer-x64.exe
5 changes: 3 additions & 2 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
+ VERSION;[Other fields ignored;]2024-02-03
- Initial Release
# ⚠️Showcase PDF Test Release 0.9.0

- Test release
1 change: 1 addition & 0 deletions Showcase/Showcase.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<ApplicationManifest>app.manifest</ApplicationManifest>
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
<ApplicationIcon>Assets\showcase-pdf-logo.ico</ApplicationIcon>
<Version>0.9.0</Version>
</PropertyGroup>
<ItemGroup>
<AvaloniaResource Include="Assets\**" />
Expand Down

0 comments on commit 647bf1a

Please sign in to comment.