bump to v2.0.1
#18
Workflow file for this run
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
name: Build and Publish extension | |
on: | |
push: | |
tags: | |
- v* | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Prepare pnpm | |
uses: pnpm/action-setup@v3 | |
with: | |
version: 9 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm i | |
- name: Zip extensions | |
run: | | |
pnpm run zip | |
pnpm run zip:firefox | |
- name: Submit to stores | |
run: | | |
pnpm wxt submit \ | |
--chrome-zip .output/*-chrome.zip \ | |
--firefox-zip .output/*-firefox.zip --firefox-sources-zip .output/*-sources.zip | |
env: | |
CHROME_EXTENSION_ID: ${{ secrets.CHROME_EXTENSION_ID }} | |
CHROME_CLIENT_ID: ${{ secrets.CHROME_CLIENT_ID }} | |
CHROME_CLIENT_SECRET: ${{ secrets.CHROME_CLIENT_SECRET }} | |
CHROME_REFRESH_TOKEN: ${{ secrets.CHROME_REFRESH_TOKEN }} | |
FIREFOX_EXTENSION_ID: ${{ secrets.FIREFOX_EXTENSION_ID }} | |
FIREFOX_JWT_ISSUER: ${{ secrets.FIREFOX_JWT_ISSUER }} | |
FIREFOX_JWT_SECRET: ${{ secrets.FIREFOX_JWT_SECRET }} | |
- name: Create Release | |
uses: softprops/action-gh-release@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
with: | |
draft: false | |
prerelease: false | |
files: | | |
.output/*-chrome.zip | |
.output/*-firefox.zip | |
.output/*-sources.zip |