diff --git a/.github/workflows/package_release.yml b/.github/workflows/package_release.yml index 84528b5..8b05611 100644 --- a/.github/workflows/package_release.yml +++ b/.github/workflows/package_release.yml @@ -7,7 +7,6 @@ on: jobs: build-and-deploy-linux: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v2 # Set up Node.js @@ -29,9 +28,9 @@ jobs: with: files: | dist/FrameCast.Setup.linux_amd64.deb + build-and-deploy-windows: runs-on: windows-latest - steps: - uses: actions/checkout@v2 # Set up Node.js @@ -57,4 +56,31 @@ jobs: with: files: | dist/FrameCast.Setup.win32.exe - dist/FrameCast.Setup.win32.exe.blockmap \ No newline at end of file + dist/FrameCast.Setup.win32.exe.blockmap + + build-and-deploy-mac: + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + # Set up Node.js + - uses: actions/setup-node@v1 + with: + node-version: '18.x' + # Install dependencies + - name: Install Dependencies + run: npm install + # Build the project + - name: Package for MacOS + run: npm run electron:package:mac + # Rename the release artifact + - name: Rename Artifact + run: mv dist/FrameCast-*.dmg dist/FrameCast.Setup.darwin.dmg + - name: Rename Artifact Blockmap + run: mv dist/FrameCast-*.dmg.blockmap dist/FrameCast.Setup.darwin.dmg.blockmap + # Upload the release artifact + - name: Upload Artifacts + uses: softprops/action-gh-release@v2 + with: + files: | + dist/FrameCast.Setup.darwin.dmg + dist/FrameCast.Setup.darwin.dmg.blockmap \ No newline at end of file