chore: bump version to v0.1.0 #38
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: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-mac: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm fetch:stem-model | |
| # @electron/notarize passes APPLE_API_KEY to `notarytool --key` as a FILE PATH, not | |
| # base64 content, so decode the base64 secret to a .p8 on disk and point the env var | |
| # at that path in the build step below. | |
| - name: Write App Store Connect API key to a file | |
| run: printf '%s' "${{ secrets.APPLE_API_KEY }}" | base64 -d > "$RUNNER_TEMP/authkey.p8" | |
| - run: pnpm build:publish | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # Developer ID Application cert (base64 .p12) + its export password. | |
| CSC_LINK: ${{ secrets.MAC_CSC_LINK }} | |
| CSC_KEY_PASSWORD: ${{ secrets.MAC_CSC_KEY_PASSWORD }} | |
| # App Store Connect API key for notarization: path to the .p8 written above, | |
| # plus its Key ID and Issuer ID. | |
| APPLE_API_KEY: ${{ runner.temp }}/authkey.p8 | |
| APPLE_API_KEY_ID: ${{ secrets.APPLE_API_KEY_ID }} | |
| APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }} | |
| APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} | |
| build-windows: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.11' | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm fetch:stem-model | |
| - run: pnpm build:publish | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| publish: | |
| needs: [build-mac, build-windows] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - run: gh release edit ${{ github.ref_name }} --draft=false --repo RubenGlez/samplebyte | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |