Tabula v1.2.0 #25
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: | |
| release: | |
| types: [published] | |
| push: | |
| tags: | |
| - "v*" | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install | |
| run: bun install | |
| - name: Type check | |
| run: bun run type-check | |
| - name: Test | |
| run: bun test | |
| - name: Build | |
| env: | |
| VITE_WEATHER_API_KEY: ${{ secrets.VITE_WEATHER_API_KEY }} | |
| run: RELEASE_BUILD=1 bun run build | |
| - name: Lint (Firefox) | |
| run: bun run lint:firefox | |
| - name: Package | |
| run: bun run pack:chrome | |
| - name: Determine version | |
| id: ver | |
| run: echo "version=$(bun scripts/version.mjs)" >> $GITHUB_OUTPUT | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: extension-zips | |
| path: | | |
| tabula-${{ steps.ver.outputs.version }}-chrome.zip | |
| tabula-${{ steps.ver.outputs.version }}-firefox.zip | |
| - name: Attach to Release | |
| if: github.event_name == 'release' | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: | | |
| tabula-${{ steps.ver.outputs.version }}-chrome.zip | |
| tabula-${{ steps.ver.outputs.version }}-firefox.zip | |
| - name: Publish to Firefox AMO | |
| if: github.event_name == 'release' | |
| env: | |
| AMO_JWT_ISSUER: ${{ secrets.AMO_JWT_ISSUER }} | |
| AMO_JWT_SECRET: ${{ secrets.AMO_JWT_SECRET }} | |
| WEB_EXT_API_KEY: ${{ secrets.AMO_JWT_ISSUER }} | |
| WEB_EXT_API_SECRET: ${{ secrets.AMO_JWT_SECRET }} | |
| run: bun run publish:firefox | |
| - name: Upload signed XPI | |
| if: github.event_name == 'release' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: signed-firefox-xpi | |
| path: web-ext-artifacts/*.xpi | |
| if-no-files-found: ignore | |
| - name: Attach signed XPI to Release | |
| if: github.event_name == 'release' | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: web-ext-artifacts/*.xpi | |
| # Chrome Web Store publishing disabled - requires $5 developer fee | |
| # Uncomment when ready to publish to Chrome | |
| # - name: Publish to Chrome Web Store | |
| # if: github.event_name == 'release' && env.CHROME_EXTENSION_ID != '' | |
| # env: | |
| # CHROME_EXTENSION_ID: ${{ secrets.CHROME_EXTENSION_ID }} | |
| # CHROME_CLIENT_ID: ${{ secrets.CHROME_CLIENT_ID }} | |
| # CHROME_CLIENT_SECRET: ${{ secrets.CHROME_CLIENT_SECRET }} | |
| # CHROME_REFRESH_TOKEN: ${{ secrets.CHROME_REFRESH_TOKEN }} | |
| # CLIENT_ID: ${{ secrets.CHROME_CLIENT_ID }} | |
| # CLIENT_SECRET: ${{ secrets.CHROME_CLIENT_SECRET }} | |
| # REFRESH_TOKEN: ${{ secrets.CHROME_REFRESH_TOKEN }} | |
| # run: bun run publish:chrome |