Skip to content

Commit

Permalink
chore: add github action to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
dtfiedler committed Jul 9, 2024
1 parent 960ed99 commit 17c7d9e
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# build extension and publish on merges to main

name: Build and Publish

on:
push:
branches:
- main

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

- name: Set Up node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: 'yarn'

- name: Install dependencies
run: yarn --immutable --immutable-cache

- name: Build
run: yarn build

- name: Zip
run: zip -r dist.zip dist

- name: Publish
if: github.ref == 'refs/heads/main'
uses: Klemensas/chrome-extension-upload-action
with:
refresh-token: ${{ secrets.REFRESH_TOKEN }}
client-id: ${{ secrets.CLIENT_ID }}
client-secret: ${{ secrets.CLIENT_SECRET }}
file-name: './dist.zip'
app-id: ${{ secrets.APP_ID }}
publish: true


0 comments on commit 17c7d9e

Please sign in to comment.