From 459496d35096e1556ccb6895e6305cc74534efb5 Mon Sep 17 00:00:00 2001 From: garakmon Date: Mon, 20 Feb 2023 14:21:35 -0500 Subject: [PATCH] upload macos release zip in actions --- .github/workflows/main.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 477dd660..24180f77 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -67,15 +67,26 @@ jobs: - name: Compile run: make - - name: Bundle + - name: Create Disk Image if: startsWith(github.ref, 'refs/tags/') run: macdeployqt actionstest.app -dmg + - name: Prep Release Directory + if: startsWith(github.ref, 'refs/tags/') + run: | + mkdir porymap-macOS-${{ github.ref_name }} + cp porymap.dmg porymap-macOS-${{ github.ref_name }}/porymap.dmg + cp RELEASE-README.txt porymap-macOS-${{ github.ref_name }}/README.txt + + - name: Bundle Release Directory + if: startsWith(github.ref, 'refs/tags/') + run: zip -r porymap-macOS-${{ github.ref_name }}.zip porymap-macOS-${{ github.ref_name }} + - name: Release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: - files: actionstest.dmg + files: porymap-macOS-${{ github.ref_name }}.zip env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}