Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Commit

Permalink
release ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
theowenyoung committed Nov 7, 2022
1 parent 82bd395 commit bb1a16a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,29 @@ jobs:
run: npm i
- name: Build
run: npm run build
- name: Add Version to folders
run: |
mv dist/chrome.zip dist/chrome-immersive_translate-${{ steps.set_var.outputs.version }}.zip
- id: set_var
run: |
content=`cat ./src/manifest.json`
echo "::set-output name=version::$(echo $content | jq -r '.version')"
- name: Add Version to folders
run: |
mv dist/chrome.zip dist/chrome-immersive_translate-${{ steps.set_var.outputs.version }}.zip
- name: "web-ext build"
id: web-ext-build
uses: kewisch/action-web-ext@v1
with:
cmd: build
source: dist/firefox
filename: "firefox-{name}-{version}.xpi"
- uses: trmcnvn/firefox-addon@v1
with:
# uuid is only necessary when updating an existing addon,
# omitting it will create a new addon
uuid: '{5efceaa7-f3a2-4e59-a54b-85319448e305}'
xpi: ${{ steps.web-ext-build.outputs.target }}
manifest: manifest.json
api-key: ${{ secrets.FIREFOX_API_KEY }}
api-secret: ${{ secrets.FIREFOX_API_SECRET }}
- name: "web-ext sign"
id: web-ext-sign
uses: kewisch/action-web-ext@v1
Expand All @@ -64,12 +73,3 @@ jobs:
files: |
dist/chrome-immersive_translate-${{ steps.set_var.outputs.version }}.zip
${{ steps.web-ext-sign.outputs.target }}
- uses: trmcnvn/firefox-addon@v1
with:
# uuid is only necessary when updating an existing addon,
# omitting it will create a new addon
uuid: '{5efceaa7-f3a2-4e59-a54b-85319448e305}'
xpi: ${{ steps.web-ext-build.outputs.target }}
manifest: manifest.json
api-key: ${{ secrets.FIREFOX_API_KEY }}
api-secret: ${{ secrets.FIREFOX_API_SECRET }}
3 changes: 2 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Translate your page in real time using Google or Yandex.
正在适配:

- Youtube 评论区

- Github

Firefox商店[沉浸式翻译](https://addons.mozilla.org/en-US/firefox/addon/immersive-translate/)已上架, chrome 商店还在计划中.

Expand Down Expand Up @@ -60,6 +60,7 @@ Firefox商店[沉浸式翻译](https://addons.mozilla.org/en-US/firefox/addon/im
## Todo


- [ ] - adapt for Github
- [ ] - backup默认文件名还是TWP
- [ ] - option页面从extension中打开的显示问题
- [ ] - 版本号自动添加
Expand Down

0 comments on commit bb1a16a

Please sign in to comment.