-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a9b7c94
commit d3c0f0c
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Launch Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- bpp | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# --- SETUP --- | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '18' | ||
|
||
- name: Get package info | ||
id: package_info | ||
run: | | ||
echo "::set-output name=version::$(node -p "require('./package.json').version")" | ||
echo "::set-output name=name::$(node -p "require('./package.json').name")" | ||
# --- BUILD --- | ||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Build extension | ||
run: npm run prod | ||
|
||
# - name: Prepare source code zip | ||
# run: zip -r releases/${{ steps.package_info.outputs.name }}_${{ github.run_number }}_firefox_source.zip src/ | ||
|
||
# --- PUBLISH --- | ||
- name: Browser Platform Publish | ||
uses: PlasmoHQ/bpp@v3.6.1 | ||
with: | ||
keys: ${{ secrets.BPP_KEYS }} | ||
chrome-file: releases/${{ steps.package_info.outputs.name }}_${{ steps.package_info.outputs.version }}_chrome.zip | ||
firefox-file: releases/${{ steps.package_info.outputs.name }}_${{ steps.package_info.outputs.version }}_firefox.zip | ||
edge-file: releases/${{ steps.package_info.outputs.name }}_${{ steps.package_info.outputs.version }}_chrome.zip |