PACKAGE: rebuild with correct tag #13
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: Package (Linux) | |
| on: | |
| push: | |
| branches: [ main ] | |
| permissions: # ← give the token write access to Releases | |
| contents: write | |
| jobs: | |
| build-linux: | |
| if: contains(github.event.head_commit.message, 'PACKAGE') | |
| runs-on: ubuntu-latest | |
| steps: | |
| # 1 Checkout + Git-LFS (for .onnx, .bin, not included otherwise!!!!!) | |
| - uses: actions/checkout@v4 | |
| with: | |
| lfs: true | |
| # 2 Node + npm cache | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.15.0 | |
| cache: npm | |
| cache-dependency-path: | | |
| package-lock.json | |
| renderer/package-lock.json | |
| # 3 Install deps | |
| - run: npm ci | |
| - run: npm ci --prefix renderer | |
| # 4 build/Tagasaurus-*.zip | |
| - run: npm run package | |
| # 5 Read version before release step | |
| - id: get_version | |
| run: echo "VERSION=$(node -p \"require('./package.json').version\")" >> "$GITHUB_OUTPUT" | |
| # 6 Create / update release / attach ZIP | |
| - name: Publish ZIP to GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tag_name: v${{ steps.get_version.outputs.VERSION }} | |
| name: "Tagasaurus v${{ steps.get_version.outputs.VERSION }}" | |
| draft: false # true = hold for manual review | |
| prerelease: true # stays in Pre-release | |
| files: build/*.zip # any ZIP in build/ | |
| fail_on_unmatched_files: true |