Skip to content

1.5.32

1.5.32 #40

Workflow file for this run

name: Build release
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 14.x
- run: yarn
- run: yarn --cwd functions
- run: yarn run build
- run: npx web-ext --config web-ext.config.js build
- run: npx web-ext --config web-ext.config.js sign
env:
WEB_EXT_API_KEY: ${{ secrets.FIREFOX_API_KEY }}
WEB_EXT_API_SECRET: ${{ secrets.FIREFOX_API_SECRET }}
- name: Upload to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/*
file_glob: true
tag: ${{ github.ref }}
overwrite: true
- run: |
export NAME=spotify_lyrics-$(node -p "require('./package.json').version")
export PATH=build/${NAME}
echo "PATH=${PATH}" >> $GITHUB_ENV
echo ${PATH}
- uses: hocgin/action-edge-addone-upload@main
with:
product_id: ${{ secrets.EDGE_PRODUCT_ID }}
client_id: ${{ secrets.EDGE_CLIENT_ID }}
client_secret: ${{ secrets.EDGE_CLIENT_SECRET }}
access_token_url: ${{ secrets.EDGE_ACCESS_TOKEN_URL }}
addone_file: ${{ env.PATH }}.zip
- uses: trmcnvn/chrome-addon@v2
with:
extension: mkjfooclbdgjdclepjeepbmmjaclipod
zip: ${{ env.PATH }}.zip
client-id: ${{ secrets.CHROME_CLIENT_ID }}
client-secret: ${{ secrets.CHROME_CLIENT_SECRET }}
refresh-token: ${{ secrets.CHROME_REFRESH_TOKEN }}