feat: Add Discord-optimized strategies #29
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| name: Build macOS App | |
| runs-on: macos-26 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Build Swift Project | |
| run: | | |
| ls -la | |
| cd zapret_src && make mac && cd .. | |
| swift build -c release | |
| - name: Create App Bundle and DMG | |
| run: | | |
| chmod +x create_app.sh | |
| # Create dummy icons to prevent script failure if they are missing locally but script expects them | |
| # (Assuming script uses internal SF Symbols logic now, but checking just in case) | |
| ./create_app.sh ${{ github.ref_name }} | |
| - name: Release | |
| uses: softprops/action-gh-release@v1 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| files: "*.dmg" | |
| generate_release_notes: true | |
| draft: false | |
| prerelease: false | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |