Merge branch 'develop' of https://github.com/toobeeh/skribbltypo into… #44
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
name: Firefox & Chrome Web Extension Release Test | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
publish-chrome: | |
name: "Test Release Chrome 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: Archive Release | |
uses: thedoctor0/zip-release@master | |
with: | |
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-chromium-release-${{ env.VERSION }} | |
path: typo-chromium-release-${{ env.VERSION }}.zip | |
publish-firefox: | |
name: "Test Release 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/*"]' | |
timeout: 900000 | |
- name: Archive signed XPI | |
uses: actions/upload-artifact@v3 | |
with: | |
name: typo-firefox-signed-release-${{env.VERSION}} | |
path: ${{ steps.web-ext-build.outputs.target }} |