Skip to content

Commit

Permalink
chore: fix loading source code zip
Browse files Browse the repository at this point in the history
  • Loading branch information
nobkd committed Oct 3, 2023
1 parent 75efe15 commit 1212c02
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,22 @@ jobs:
- name: Install
run: npm ci

- name: Build
- name: Build extension
run: npm run build

- name: Bundle
- name: Bundle extension
run: npm run bundle

- name: Load source code
run: gh release download ${{ github.event.release.tag_name }} --archive zip --dir out --output replace_maps_source.zip

- name: Release
uses: browser-actions/release-firefox-addon@latest
with:
addon-id: "replace_maps@nobkd.github.io"
addon-path: "out/replace_maps.zip"
source-path: "https://github.com/nobkd/replace-maps/archive/refs/tags/${{ github.event.release.tag_name }}.zip"
approval-note: "Follow the instructions in AMO-README.md"
addon-id: replace_maps@nobkd.github.io
addon-path: out/replace_maps.zip
source-path: out/replace_maps_source.zip
approval-note: Follow the instructions in AMO-README.md
release-note: ${{ github.event.release.body }}
auth-api-issuer: ${{ secrets.AUTH_API_ISSUER }}
auth-api-secret: ${{ secrets.AUTH_API_SECRET }}
Expand Down

0 comments on commit 1212c02

Please sign in to comment.