Merge branch 'master' into release #15
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: release | |
on: | |
push: | |
tags: | |
- "v*" | |
permissions: | |
contents: write | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Volta | |
uses: volta-cli/action@v4 | |
- name: Install dependencies | |
run: ./devtools.sh init | |
- name: Build | |
run: | | |
pnpm run build-chrome | |
pnpm run build-firefox | |
- name: Compress files | |
uses: vimtor/[email protected] | |
with: | |
files: dist/chrome | |
dest: gaming-gundai-chrome.zip | |
- name: Compress files | |
uses: vimtor/[email protected] | |
with: | |
files: dist/firefox | |
dest: gaming-gundai-firefox.zip | |
- name: Submit | |
run: npx chrome-webstore-upload-cli@2 upload --source gaming-gundai-chrome.zip --auto-publish | |
env: | |
EXTENSION_ID: ${{ secrets.EXTENSION_ID }} | |
CLIENT_ID: ${{ secrets.CLIENT_ID }} | |
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} | |
REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }} | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
files: | | |
gaming-gundai-chrome.zip | |
gaming-gundai-firefox.zip |