mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-12 02:22:26 +01:00
Create release and upload artefacts for tags (#22915)
This commit is contained in:
committed by
GitHub
parent
2d217de178
commit
b61861c006
32
.github/workflows/ci.yml
vendored
32
.github/workflows/ci.yml
vendored
@@ -530,3 +530,35 @@ jobs:
|
|||||||
else
|
else
|
||||||
echo 'Not going to push build'
|
echo 'Not going to push build'
|
||||||
fi
|
fi
|
||||||
|
release:
|
||||||
|
name: Release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [get_artifact_name, linux-portable, android, linux-appimage, macos-universal, windows]
|
||||||
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
|
steps:
|
||||||
|
- name: Download artifacts
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
merge-multiple: true
|
||||||
|
- name: Concatenate sha1 files
|
||||||
|
run: |
|
||||||
|
ls -lR
|
||||||
|
pushd ${{ github.workspace }}
|
||||||
|
sha1sum OpenRCT2-* > openrct2-${{ needs.get_artifact_name.outputs.name }}-sha1sums.txt
|
||||||
|
popd
|
||||||
|
- name: Create release notes
|
||||||
|
run: |
|
||||||
|
echo "SHA1 checksums:" >> release_notes.txt
|
||||||
|
echo "\`\`\`" >> release_notes.txt
|
||||||
|
cat openrct2-${{ needs.get_artifact_name.outputs.name }}-sha1sums.txt >> release_notes.txt
|
||||||
|
echo "\`\`\`" >> release_notes.txt
|
||||||
|
echo "" >> release_notes.txt
|
||||||
|
- name: Create release
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
|
with:
|
||||||
|
draft: true
|
||||||
|
files: |
|
||||||
|
openrct2-${{ needs.get_artifact_name.outputs.name }}-sha1sums.txt
|
||||||
|
OpenRCT2-${{ needs.get_artifact_name.outputs.name }}-*
|
||||||
|
body_path: release_notes.txt
|
||||||
|
tag_name: ${{ needs.get_artifact_name.outputs.tag }}
|
||||||
|
|||||||
Reference in New Issue
Block a user