PACKAGE: rebuild with correct tag #17
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: | |
| contents: write | |
| jobs: | |
| build-linux: | |
| if: contains(github.event.head_commit.message, 'PACKAGE') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: { lfs: true } | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.15.0 | |
| cache: npm | |
| cache-dependency-path: | | |
| package-lock.json | |
| renderer/package-lock.json | |
| - run: npm ci | |
| - run: npm ci --prefix renderer | |
| - run: npm run package | |
| - id: get_version | |
| run: | | |
| VERSION=$(node -p "require('./package.json').version") | |
| echo "VERSION=$VERSION" >> "$GITHUB_OUTPUT" | |
| - 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 | |
| prerelease: true | |
| files: build/*.zip | |
| fail_on_unmatched_files: true |