Skip to content

Commit 9c04bf6

Browse files
Update build.yml
1 parent 628758a commit 9c04bf6

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,15 @@ jobs:
2626
- name: Build executable
2727
run: python scripts/build.py
2828

29-
- name: Upload artifact
30-
uses: actions/upload-artifact@v4
29+
- name: Rename for release
30+
run: python -c "import os,shutil; platform='${{ runner.os }}'.lower(); ext='.exe' if os.name=='nt' else ''; run_id='${{ github.run_id }}'; shutil.move(f'riddle{ext}', f'riddle-{run_id}-{platform}{ext}')"
31+
32+
- uses: ncipollo/release-action@v1
3133
with:
32-
name: riddle-${{ runner.os }}
33-
path: |
34-
riddle
35-
riddle.exe
34+
tag: riddle-${{ github.run_id }}
35+
name: Riddle build ${{ github.run_id }}
36+
commit: ${{ github.sha }}
37+
artifacts: riddle-*
38+
allowUpdates: true
39+
replacesArtifacts: true
40+
body: Automatic build from commit ${{ github.sha }}

0 commit comments

Comments
 (0)