Skip to content

Commit

Permalink
new workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
semanticdata authored Apr 25, 2024
1 parent c346982 commit 0d9bf09
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-new-addon-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Publish new Firefox Add-on version

on:
workflow_dispatch: # Trigger workflow manually
release:
types: [published] # Trigger when a new release is published
# release:
# types: [published] # Trigger when a new release is published

permissions:
contents: read
Expand Down
59 changes: 59 additions & 0 deletions .github/workflows/web-ext-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: "Release"

on:
workflow_dispatch:
push:
tags:
- "v*.*.*"
release:
types: [published]

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: "web-ext build"
id: web-ext-build
uses: kewisch/action-web-ext@v1
with:
cmd: build
filename: "{name}-{version}.xpi"
# ignoreFiles: '[ "package.json","package-lock.json","yarn.lock", ".github", ".gitattributes", "LICENSE", "README.md" ]'
ignoreFiles: |
- package.json
- package-lock.json
- yarn.lock
- .github
- .gitattributes
- LICENSE
- README.md
- name: "web-ext sign"
id: web-ext-sign
uses: kewisch/action-web-ext@v1
with:
cmd: sign
channel: listed
source: ${{ steps.web-ext-build.outputs.target }}
apiKey: ${{ secrets.FIREFOX_JWT_ISSUER }}
apiSecret: ${{ secrets.FIREFOX_JWT_SECRET }}
timeout: 900000

# - name: "Upload Artifact"
# uses: actions/upload-artifact@v3
# with:
# name: target.xpi
# path: ${{ steps.web-ext-build.outputs.target }}

- name: "Create Release"
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: ${{ steps.web-ext-sign.outputs.target }}

0 comments on commit 0d9bf09

Please sign in to comment.