Skip to content

Commit

Permalink
add ff release
Browse files Browse the repository at this point in the history
  • Loading branch information
toobeeh committed May 12, 2023
1 parent e97fa39 commit 1839306
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 6 deletions.
68 changes: 63 additions & 5 deletions .github/workflows/extension-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ jobs:
- name: Archive Release
uses: thedoctor0/zip-release@master
with:
filename: typo-chrome-release-${{ env.VERSION }}.zip
filename: typo-chromium-release-${{ env.VERSION }}.zip
exclusions: "*.git* *.xpi skribbltypo.user.js userscript-gen.js readme.md patch.json /*extensions/* *.web-extension-id .editorconfig .github/"

- name: Append to artifacts
uses: actions/upload-artifact@v3
with:
name: typo-chrome-release-${{ env.VERSION }}
path: typo-chrome-release-${{ env.VERSION }}.zip
name: typo-chromium-release-${{ env.VERSION }}
path: typo-chromium-release-${{ env.VERSION }}.zip

- name: Append to release
id: upload-release-asset
Expand All @@ -65,6 +65,64 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: typo-chrome-release-${{ env.VERSION }}.zip
asset_name: typo-chrome-release-${{ env.VERSION }}.zip
asset_path: typo-chromium-release-${{ env.VERSION }}.zip
asset_name: typo-chromium-release-${{ env.VERSION }}.zip
asset_content_type: application/zip

publish-firefox:
needs: release
name: "Build and sign Firefox Web Ext"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- name: "Get Version"
run: echo "VERSION=$(jq -r '.version' manifest.json)" >> $GITHUB_ENV

- name: "Echo Version"
run: echo $VERSION

- name: "web-ext build"
id: web-ext-build
uses: kewisch/action-web-ext@v1
with:
cmd: build
source: ./
exclusions: '["skribbltypo.user.js", "userscript-gen.js"," patch.json", "/*extensions/*"]'

- name: "web-ext sign"
id: web-ext-sign
uses: kewisch/action-web-ext@v1
with:
cmd: sign
source: ${{ steps.web-ext-build.outputs.target }}
channel: unlisted
apiKey: ${{ secrets.MOZILLA_API_KEY }}
apiSecret: ${{ secrets.MOZILLA_API_SECRET }}
timeout: 900000

- name: Archive signed XPI
uses: actions/upload-artifact@v3
with:
name: typo-firefox-signed-release-${{env.VERSION}}
path: ${{ steps.web-ext-sign.outputs.target }}

- name: "Publish update to tobeh.host"
env:
FILE_PATH: ${{ steps.web-ext-sign.outputs.target }}
VERSION: ${{env.VERSION}}
AUTH: ${{ secrets.FF_UPDATE_AUTH }}
SCRIPT_URL: ${{ secrets.FF_UPDATE_URL }}
run: |
curl -X POST -F "file=@$FILE_PATH" -F "version=$VERSION" -F "auth=$AUTH" $SCRIPT_URL
- name: Append to release
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: ${{ steps.web-ext-sign.outputs.target }}
asset_name: typo-firefox-signed-release-${{env.VERSION}}.xpi
asset_content_type: application/x-xpinstall
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "Skribbl Typo",
"description": "The most complete toolbox for skribbl.io with namefinder & Discord integration",
"version": "24.3.5.14",
"version": "24.3.5.15",
"author": "tobeh",
"icons": {
"256": "res/icon/256MaxFit.png",
Expand Down

0 comments on commit 1839306

Please sign in to comment.