Skip to content

Issue:#410 testing on it #412

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 15 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,37 @@
name: Release on Tag

on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10

jobs:
deploy:
name: "Deploy"
runs-on: "ubuntu-latest"

steps:
- name: "Checkout"
uses: actions/checkout@v4

- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV

- name: Build
run: ./pack-ext.py ./

- uses: wdzeng/firefox-addon@v1
with:
addon-guid: '[email protected]'
xpi-path: GlotDict_${{ steps.get_version.outputs.version }}.xpi
addon-guid: "[email protected]"
xpi-path: GlotDict_${{ env.VERSION }}.xpi
jwt-issuer: ${{ secrets.FIREFOX_API_KEY }}
jwt-secret: ${{ secrets.FIREFOX_API_SECRET }}

- uses: wdzeng/chrome-extension@v1
with:
refresh-token: ${{ secrets.CHROME_API_TOKEN }}
client-id: ${{ secrets.CHROME_API_ID }}
client-secret: ${{ secrets.CHROME_API_SECRET }}
zip-path: GlotDict_${{ steps.get_version.outputs.version }}.zip
extension-id: ${{ secrets.CHROME_UUID }}
refresh-token: ${{ secrets.CHROME_API_TOKEN }}
client-id: ${{ secrets.CHROME_API_ID }}
client-secret: ${{ secrets.CHROME_API_SECRET }}
zip-path: GlotDict_${{ env.VERSION }}.zip
extension-id: ${{ secrets.CHROME_UUID }}