Release #48
This file contains 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
env: | |
DIRECTORY: dist | |
name: Release | |
on: | |
workflow_dispatch: null | |
jobs: | |
submit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out ${{ github.sha }} of ${{ github.repository }} | |
uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
id: pnpm-install | |
with: | |
version: 9 | |
run_install: false | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".nvmrc" | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build | |
run: pnpm run build | |
- name: Archive source | |
run: git archive -o source.zip HEAD | |
- name: Submit | |
run: | | |
pnpm exec amo-upload \ | |
sign \ | |
--api-key ${{ secrets.WEB_EXT_API_KEY }} \ | |
--api-secret ${{ secrets.WEB_EXT_API_SECRET }} \ | |
--addon-id ${{ secrets.ADDON_ID }} \ | |
--addon-version $(cat .version) \ | |
--channel listed \ | |
--dist-file "web-ext-artifacts/banger-$(cat .version).zip" \ | |
--source-file source.zip |