Latest Release Build #2
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: Latest Release Build | |
| on: | |
| release: | |
| types: | |
| - published | |
| jobs: | |
| build: | |
| env: | |
| ADDON_ID: "{20f2dcdf-6f8d-4aeb-862b-b13174475d9c}" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - run: | | |
| npm install --force | |
| # npm run lint:check | |
| # Extract version number from the tag | |
| VERSION=$(echo -n "${{ github.ref }}" | sed 's/[refs\/tagv]//g' | sed 's/-.*//') | |
| npm run build | |
| - name: Upload Chrome package to release | |
| uses: svenstaro/upload-release-action@v2 | |
| with: | |
| repo_token: ${{ secrets.GITHUB_TOKEN }} | |
| file: dist/YtcFilter-Chrome.zip | |
| asset_name: YtcFilter-Chrome.zip | |
| tag: ${{ github.ref }} | |
| overwrite: true | |
| - name: Upload Firefox package to release | |
| uses: svenstaro/upload-release-action@v2 | |
| with: | |
| repo_token: ${{ secrets.GITHUB_TOKEN }} | |
| file: dist/YtcFilter-Firefox.zip | |
| asset_name: YtcFilter-Firefox.zip | |
| tag: ${{ github.ref }} | |
| overwrite: true |