Skip to content

Commit

Permalink
ci: workflow with BPP publish only
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo-COLLIN committed Jan 29, 2025
1 parent a9b7c94 commit d3c0f0c
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/bpp.yml
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/[email protected]
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

0 comments on commit d3c0f0c

Please sign in to comment.