Skip to content

Commit c0b0695

Browse files
committed
Create release from a Linux runner
The *Read the changelog* action failed with this error message: Error: Container action is only supported on Linux Add a second job to run on Linux. This will read the changelog and do the release, using the artifacts of the previous build job.
1 parent 6cd4f71 commit c0b0695

1 file changed

Lines changed: 22 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,26 @@ jobs:
2424
- name: Build
2525
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
2626

27+
- name: Archive executable
28+
uses: actions/upload-artifact@v4
29+
with:
30+
name: MStarPlayer
31+
path: ${{github.workspace}}/build/MStarPlayer_artefacts/${{env.BUILD_TYPE}}/MStarPlayer.exe
32+
33+
- name: Archive PDB
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: PDB
37+
path: ${{github.workspace}}/build/MStarPlayer_artefacts/${{env.BUILD_TYPE}}/MStarPlayer.pdb
38+
39+
publish:
40+
runs-on: ubuntu-latest
41+
42+
steps:
43+
- uses: actions/download-artifacts@v4
44+
with:
45+
merge-multiple: true
46+
2747
- name: Read the changelog
2848
id: changelog
2949
uses: 3liz/changelog-release@0.2.0
@@ -36,5 +56,5 @@ jobs:
3656
with:
3757
body: ${{ steps.changelog.outputs.markdown }}
3858
files: |
39-
${{github.workspace}}/build/MStarPlayer_artefacts/${{env.BUILD_TYPE}}/MStarPlayer.exe
40-
${{github.workspace}}/build/MStarPlayer_artefacts/${{env.BUILD_TYPE}}/MStarPlayer.pdb
59+
${{github.workspace}}/MStarPlayer.exe
60+
${{github.workspace}}/MStarPlayer.pdb

0 commit comments

Comments
 (0)