bump v1.5.3 #4
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: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install jq | |
| run: sudo apt-get install -y jq | |
| - name: Get version from tag | |
| id: version | |
| run: echo "VERSION=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT" | |
| - name: Build Firefox zip | |
| run: | | |
| VERSION="${{ steps.version.outputs.VERSION }}" | |
| # Firefox uses Event Pages (scripts) and handles background differently than Chrome | |
| # Remove service_worker which is Chrome-specific | |
| jq 'del(.background.service_worker)' manifest.json > manifest.firefox.json | |
| mv manifest.firefox.json manifest.json | |
| zip -r "fluxon-${VERSION}-firefox.zip" \ | |
| manifest.json \ | |
| background.js \ | |
| offscreen.html \ | |
| offscreen.js \ | |
| popup.html \ | |
| popup.css \ | |
| popup.js \ | |
| options.html \ | |
| options.js \ | |
| plugin-engine.js \ | |
| mux.js \ | |
| media-db.js \ | |
| mediabunny.js \ | |
| i18n-helper.js \ | |
| icons/ \ | |
| _locales/ \ | |
| plugins/ | |
| # Restore manifest for next step | |
| git checkout manifest.json | |
| echo "FIREFOX_ZIP=fluxon-${VERSION}-firefox.zip" >> "$GITHUB_ENV" | |
| - name: Build Chrome zip | |
| run: | | |
| VERSION="${{ steps.version.outputs.VERSION }}" | |
| # Patch offscreen permission into manifest for Chrome | |
| # Also remove "scripts" which is the Firefox-specific background mechanism | |
| jq '.permissions += ["offscreen"] | del(.background.scripts)' manifest.json > manifest.chrome.json | |
| mv manifest.chrome.json manifest.json | |
| zip -r "fluxon-${VERSION}-chrome.zip" \ | |
| manifest.json \ | |
| background.js \ | |
| offscreen.html \ | |
| offscreen.js \ | |
| popup.html \ | |
| popup.css \ | |
| popup.js \ | |
| options.html \ | |
| options.js \ | |
| plugin-engine.js \ | |
| mux.js \ | |
| media-db.js \ | |
| mediabunny.js \ | |
| i18n-helper.js \ | |
| icons/ \ | |
| _locales/ \ | |
| plugins/ | |
| # Restore original manifest | |
| git checkout manifest.json | |
| echo "CHROME_ZIP=fluxon-${VERSION}-chrome.zip" >> "$GITHUB_ENV" | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| name: "Fluxon v${{ steps.version.outputs.VERSION }}" | |
| body: | | |
| ## Installation | |
| ### Chrome / Edge — download `fluxon-${{ steps.version.outputs.VERSION }}-chrome.zip` | |
| 1. Extract the zip. | |
| 2. Go to `chrome://extensions`, enable **Developer mode**. | |
| 3. Click **Load unpacked** and select the extracted folder. | |
| ### Firefox — download `fluxon-${{ steps.version.outputs.VERSION }}-firefox.zip` | |
| 1. Extract the zip. | |
| 2. Go to `about:debugging` → **This Firefox** → **Load Temporary Add-on…**. | |
| 3. Select `manifest.json` from the extracted folder. | |
| files: | | |
| ${{ env.CHROME_ZIP }} | |
| ${{ env.FIREFOX_ZIP }} | |
| draft: false | |
| prerelease: false |