Skip to content

Commit

Permalink
feat: Enhance build
Browse files Browse the repository at this point in the history
* Add version to merge manifests util
* Add deploy workflow
* Add release-it lib
  • Loading branch information
janstuemmel committed Nov 17, 2022
1 parent 56eb518 commit 4c6d2ae
Show file tree
Hide file tree
Showing 8 changed files with 3,556 additions and 144 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/deploy-to-store.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Deploy to stores

on:
pull_request: # TODO: remove
workflow_dispatch:

jobs:
build:
name: Build artifacts
environment: firefox-addon
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- run: npm ci
- run: npm run bundle
- uses: actions/upload-artifact@v3
with:
name: extension-zips
path: dist/*.zip

# deploy_firefox:
# name: Deploy firefox addon
# needs: [build]
# environment: firefox-addon
# runs-on: ubuntu-latest
# steps:
# - name: Publish
# uses: PlasmoHQ/bpp@v3
# with:
# artifact: dist/firefox.zip
# keys: ${{ secrets.KEYS }}

deploy_chrome:
name: Deploy chrome extension
needs: [build]
environment: chrome-extension
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
- run: ls
- run: ls dist
# - name: Publish
# uses: PlasmoHQ/bpp@v3
# with:
# artifact: dist/chrome.zip
# keys: ${{ secrets.KEYS }}
Loading

0 comments on commit 4c6d2ae

Please sign in to comment.