|
16 | 16 | - uses: actions/checkout@v3 |
17 | 17 |
|
18 | 18 | - name: Get project version |
19 | | - uses: lllggghhhaaa/WaxDotnetVersionFinder@release |
| 19 | + uses: lllggghhhaaa/WaxDotnetVersionFinder@2.0.1 |
20 | 20 | id: project-version |
21 | 21 | with: |
22 | 22 | path: /home/runner/work/WaxMapArt/WaxMapArt/WaxMapArt.Avalonia.Desktop/WaxMapArt.Avalonia.Desktop.csproj |
@@ -55,33 +55,26 @@ jobs: |
55 | 55 | directory: /home/runner/work/WaxMapArt/WaxMapArt/publish/ |
56 | 56 | path: linux-x64 |
57 | 57 |
|
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 |
61 | 60 | env: |
62 | 61 | GITHUB_TOKEN: ${{ github.token }} |
63 | 62 | 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 |
73 | 68 | 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 |
76 | 71 | 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 |
83 | 76 | 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 |
86 | 79 | asset_name: WaxMapArt.Desktop-linux-x64.zip |
87 | | - asset_content_type: application/zip |
| 80 | + tag: ${{ steps.project-version.outputs.version }} |
0 commit comments