Linux Build Release

This commit is contained in:
Johannes Winkler 2024-09-15 12:44:31 +02:00 committed by GitHub
parent d6da284ddd
commit ba1c349b43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,6 +42,27 @@ jobs:
- name: Compile
run: make
# New steps to package and release the Linux build
- name: Prep Release Directory
if: startsWith(github.ref, 'refs/tags/')
run: |
mkdir porymap-linux-${{ github.ref_name }}
cp porymap porymap-linux-${{ github.ref_name }}/porymap
cp RELEASE-README.txt porymap-linux-${{ github.ref_name }}/README.txt
- name: Bundle Release Directory
if: startsWith(github.ref, 'refs/tags/')
run: zip -r porymap-linux-${{ github.ref_name }}.zip porymap-linux-${{ github.ref_name }}
- name: Create Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: porymap-linux-${{ github.ref_name }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-macos:
runs-on: macos-latest
steps: