1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-10 09:32:29 +01:00

Create release and upload artefacts for tags (#22915)

This commit is contained in:
Michał Janiszewski
2024-10-06 16:24:44 +02:00
committed by GitHub
parent 2d217de178
commit b61861c006

View File

@@ -530,3 +530,35 @@ jobs:
else
echo 'Not going to push build'
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 }}