Skip to content

Commit

Permalink
Release pipeline on windows-latest
Browse files Browse the repository at this point in the history
  • Loading branch information
jflheureux committed Nov 13, 2023
1 parent 15d095a commit 667af40
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
release:
strategy:
fail-fast: false
runs-on: ubuntu-latest
runs-on: windows-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v3
Expand All @@ -50,7 +50,7 @@ jobs:
run: |
git log $(git describe --tags --abbrev=0)..HEAD --oneline &> ${{ github.workspace }}-CHANGELOG.txt
cat ${{ github.workspace }}-CHANGELOG.txt
rm ./*.zip ./*.crx
npm run cleanzipcrx
- name: Release
run: npx release-it ${{github.event.inputs.releaseType}} --no-npm --no-github.release --ci --npm.skipChecks --no-git.requireCleanWorkingDir
env:
Expand All @@ -72,12 +72,12 @@ jobs:
path: |
./*.crx
./*.zip
- name: Submit to Mozilla
working-directory: ./dist
run: npx web-ext-submit@7
env:
WEB_EXT_API_KEY: ${{ secrets.MOZILLA_WEB_EXT_API_KEY }}
WEB_EXT_API_SECRET: ${{ secrets.MOZILLA_WEB_EXT_API_SECRET }}
# - name: Submit to Mozilla
# working-directory: ./dist
# run: npx web-ext-submit@7
# env:
# WEB_EXT_API_KEY: ${{ secrets.MOZILLA_WEB_EXT_API_KEY }}
# WEB_EXT_API_SECRET: ${{ secrets.MOZILLA_WEB_EXT_API_SECRET }}
- name: Submit to Google
working-directory: ./dist
run: npx chrome-webstore-upload-cli@2 upload --auto-publish
Expand Down
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@
"type": "module",
"private": true,
"scripts": {
"clean": "rimraf --glob dist ./*.zip ./*.crx ./*.pem ./*.xpi",
"clean": "run-s clean:*",
"cleanzipcrx": "run-s clean:zip clean:crx",
"clean:dist": "rimraf --glob dist",
"clean:zip": "rimraf --glob ./*.zip",
"clean:crx": "rimraf --glob ./*.crx",
"clean:pem": "rimraf --glob ./*.pem",
"clean:xpi": "rimraf --glob ./*.xpi",
"dev": "vite",
"build": "run-s build:firefox build:chrome",
"build:firefox": "cross-env NODE_ENV=production run-s clean compile build:firefox:*",
Expand Down

0 comments on commit 667af40

Please sign in to comment.