Deploy v1.9.15 #27
Workflow file for this run
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
# deploy.yml | |
# deploy the selected tag to stores | |
name: deploy | |
on: | |
workflow_dispatch: | |
tags: | |
- 'v*.*.*' | |
run-name: Deploy ${{github.ref_name}} | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
cache: "yarn" | |
- name: Build | |
run: | | |
yarn install | |
yarn run build | |
- name: Zip to hypercrx.zip | |
run: zip -j release/hypercrx.zip build/* | |
- name: Append version to release file names | |
run: | | |
cp release/hypercrx.crx ${{format('release/hypercrx-{0}.crx', github.ref_name)}} | |
cp release/hypercrx.zip ${{format('release/hypercrx-{0}.zip', github.ref_name)}} | |
- name: Deploy | |
run: | | |
yarn run deploy | |
env: | |
CHROME_EXTENSION_ID: ${{ secrets.CHROME_EXTENSION_ID }} | |
CHROME_CLIENT_ID: ${{ secrets.CHROME_CLIENT_ID }} | |
CHROME_CLIENT_SECRET: ${{ secrets.CHROME_CLIENT_SECRET }} | |
CHROME_REFRESH_TOKEN: ${{ secrets.CHROME_REFRESH_TOKEN }} | |
EDGE_PRODUCT_ID: ${{ secrets.EDGE_PRODUCT_ID }} | |
EDGE_CLIENT_ID: ${{ secrets.EDGE_CLIENT_ID }} | |
EDGE_CLIENT_SECRET: ${{ secrets.EDGE_CLIENT_SECRET }} | |
EDGE_ACCESS_TOKEN_URL: ${{ secrets.EDGE_ACCESS_TOKEN_URL }} |