release: v1.4.0 #10
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 | |
| # Builds the per-browser bundles and creates a GitHub release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "24" | |
| - name: Build bundles | |
| run: node build.js | |
| - name: Extract changelog entry | |
| run: | | |
| awk '/^## /{if(found){exit} found=1; next} found' CHANGELOG.md > .latest_changelog.md | |
| if [ ! -s .latest_changelog.md ]; then | |
| echo "No changelog entry found under a '## ' heading." >&2 | |
| exit 1 | |
| fi | |
| - name: Create GitHub release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: ${{ github.ref_name }} | |
| name: ${{ github.ref_name }} | |
| body_path: .latest_changelog.md | |
| files: | | |
| dist/monsender-chrome-*.zip | |
| dist/monsender-firefox-*.xpi | |
| - name: Install the web-ext toolchain | |
| if: startsWith(github.ref, 'refs/tags/') | |
| run: npm run tooling:webext | |
| - name: Submit the Firefox bundle to AMO | |
| if: startsWith(github.ref, 'refs/tags/') | |
| env: | |
| WEB_EXT_API_KEY: ${{ secrets.AMO_JWT_ISSUER }} | |
| WEB_EXT_API_SECRET: ${{ secrets.AMO_JWT_SECRET }} | |
| run: npm run sign |