Skip to content

Commit 84f2918

Browse files
committed
2 parents aadeed7 + 7869636 commit 84f2918

1 file changed

Lines changed: 17 additions & 24 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/checkout@v3
1717

1818
- name: Get project version
19-
uses: lllggghhhaaa/WaxDotnetVersionFinder@release
19+
uses: lllggghhhaaa/WaxDotnetVersionFinder@2.0.1
2020
id: project-version
2121
with:
2222
path: /home/runner/work/WaxMapArt/WaxMapArt/WaxMapArt.Avalonia.Desktop/WaxMapArt.Avalonia.Desktop.csproj
@@ -55,33 +55,26 @@ jobs:
5555
directory: /home/runner/work/WaxMapArt/WaxMapArt/publish/
5656
path: linux-x64
5757

58-
- name: Create Release
59-
uses: actions/create-release@v1
60-
id: create_release
58+
- name: Create a Release
59+
uses: elgohr/Github-Release-Action@v5
6160
env:
6261
GITHUB_TOKEN: ${{ github.token }}
6362
with:
64-
tag_name: v${{ steps.project-version.outputs.version }}
65-
release_name: WaxMapArt
66-
draft: false
67-
prerelease: false
68-
69-
- name: Upload Release Asset win-x64
70-
uses: actions/upload-release-asset@v1
71-
env:
72-
GITHUB_TOKEN: ${{ github.token }}
63+
title: ${{ steps.project-version.outputs.version }}
64+
workdir: /home/runner/work/WaxMapArt/WaxMapArt/publish/artifacts/
65+
66+
- name: Upload win-x64
67+
uses: svenstaro/upload-release-action@2.7.0
7368
with:
74-
upload_url: ${{ steps.create_release.outputs.upload_url }}
75-
asset_path: /home/runner/work/WaxMapArt/WaxMapArt/publish/artifacts/win-x64.zip
69+
repo_token: ${{ github.token }}
70+
file: /home/runner/work/WaxMapArt/WaxMapArt/publish/artifacts/win-x64.zip
7671
asset_name: WaxMapArt.Desktop-win-x64.zip
77-
asset_content_type: application/zip
78-
79-
- name: Upload Release Asset linux-x64
80-
uses: actions/upload-release-asset@v1
81-
env:
82-
GITHUB_TOKEN: ${{ github.token }}
72+
tag: ${{ steps.project-version.outputs.version }}
73+
74+
- name: Upload linux-x64
75+
uses: svenstaro/upload-release-action@2.7.0
8376
with:
84-
upload_url: ${{ steps.create_release.outputs.upload_url }}
85-
asset_path: /home/runner/work/WaxMapArt/WaxMapArt/publish/artifacts/linux-x64.zip
77+
repo_token: ${{ github.token }}
78+
file: /home/runner/work/WaxMapArt/WaxMapArt/publish/artifacts/linux-x64.zip
8679
asset_name: WaxMapArt.Desktop-linux-x64.zip
87-
asset_content_type: application/zip
80+
tag: ${{ steps.project-version.outputs.version }}

0 commit comments

Comments
 (0)