Skip to content

Commit dd292d3

Browse files
committed
Use the github cli instead to create the release.
1 parent dd96d5c commit dd292d3

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
name: release
55
jobs:
66
build:
7-
name: Build (${{ matrix.architecture }})
7+
name: Build (${{matrix.architecture}})
88
runs-on: windows-2022
99

1010
strategy:
@@ -20,13 +20,13 @@ jobs:
2020
shell: cmd
2121
run: |
2222
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat"
23-
msbuild Configure.sln /m /t:Rebuild /p:Configuration=Release,Platform=${{ matrix.architecture }}
23+
msbuild Configure.sln /m /t:Rebuild /p:Configuration=Release,Platform=${{matrix.architecture}}
2424
2525
- name: Upload executable
2626
uses: actions/upload-artifact@v4
2727
with:
28-
name: Configure.Release.${{ matrix.architecture }}
29-
path: Artifacts/Release/${{ matrix.architecture}}/bin
28+
name: Configure.Release.${{matrix.architecture}}
29+
path: Artifacts/Release/${{matrix.architecture}}/bin
3030

3131
release:
3232
name: Release
@@ -44,7 +44,7 @@ jobs:
4444
- uses: actions/download-artifact@v4
4545
name: Download executables
4646
with:
47-
path: ${{ github.workspace }}/Artifacts
47+
path: ${{github.workspace}}/Artifacts
4848
merge-multiple: true
4949

5050
- name: Install dotnet sign
@@ -64,7 +64,7 @@ jobs:
6464
--trusted-signing-certificate-profile ImageMagick `
6565
--trusted-signing-endpoint https://eus.codesigning.azure.net `
6666
--verbosity information
67-
working-directory: ${{ github.workspace }}/Artifacts
67+
working-directory: ${{github.workspace}}/Artifacts
6868

6969
- name: Create Configs archive
7070
shell: cmd
@@ -84,12 +84,5 @@ jobs:
8484
git push origin $release
8585
8686
- name: Publish release
87-
uses: softprops/action-gh-release@v2
88-
with:
89-
name: ${{ env.release }}
90-
tag_name: ${{ env.release }}
91-
files: |
92-
${{ github.workspace }}/Artifacts/Configure.Release.x64.exe
93-
${{ github.workspace }}/Artifacts/Configure.Release.arm64.exe
94-
${{ github.workspace }}/Artifacts/Configure.Release.x86.exe
95-
${{ github.workspace }}/files.zip
87+
shell: bash
88+
run: gh release create ${{env.release}} --title "Release ${{env.release}}" ${{github.workspace}}/Artifacts/Configure.Release.x64.exe ${{github.workspace}}/Artifacts/Configure.Release.arm64.exe ${{github.workspace}}/Artifacts/Configure.Release.x86.exe ${{github.workspace}}/files.zip

0 commit comments

Comments
 (0)