Skip to content

Commit

Permalink
Create tagged-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shfc authored Jul 8, 2024
1 parent ffa0cab commit d8da4b8
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/tagged-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release

on:
push:
tags:
- "v*"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ '18.x' }}
cache: npm

- name: Install npm dependencies
run: npm ci

- name: Build the extension
run: |
python3 build.py prod
mv extension/firefox.zip extension/firefox.xip
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
extension/chrome.zip
extension/firefox.xip

0 comments on commit d8da4b8

Please sign in to comment.