From ba1c349b437c72c6c4202acdccc5bf16260bb8e8 Mon Sep 17 00:00:00 2001 From: Johannes Winkler <35803880+jowin202@users.noreply.github.com> Date: Sun, 15 Sep 2024 12:44:31 +0200 Subject: [PATCH] Linux Build Release --- .github/workflows/main.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f71ab5c5..a0263727 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: