paveyry is building Better Hangouts Chat #24
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
name: Better Hangouts Chat build | |
run-name: ${{ github.actor }} is building Better Hangouts Chat | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: intall p7zip-full | |
run: sudo apt-get install git p7zip-full | |
- name: build and pack | |
run: "sh -c './generate_patch.sh && ./package_extensions.sh'" | |
- name: Set current date as env variable | |
run: echo "NOW=$(date +'%Y.%m.%d')" >> $GITHUB_ENV | |
- name: Add Firefox Dark Extension ID | |
run: "sh -c './add_gecko_id.sh out/darktheme/firefox/manifest.json ${{ secrets.FF_DARK_ID }}'" | |
- name: Add Firefox Light Extension ID | |
run: "sh -c './add_gecko_id.sh out/lighttheme/firefox/manifest.json ${{ secrets.FF_LIGHT_ID }}'" | |
- name: Add Firefox Slack Extension ID | |
run: "sh -c './add_gecko_id.sh out/slacktheme/firefox/manifest.json ${{ secrets.FF_SLACK_ID }}'" | |
- name: release | |
uses: actions/create-release@v1 | |
id: create_release | |
with: | |
draft: true | |
prerelease: false | |
release_name: Release ${{ github.ref_name }} - ${{ env.NOW }} | |
tag_name: ${{ github.ref }} | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
- name: upload chrome light file | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./out/lighttheme/chrome-light.zip | |
asset_name: chrome-better_hangouts_chat_light-${{ github.ref_name }}.zip | |
asset_content_type: application/zip | |
- name: upload chrome dark file | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./out/darktheme/chrome-dark.zip | |
asset_name: chrome-better_hangouts_chat_dark-${{ github.ref_name }}.zip | |
asset_content_type: application/zip | |
- name: upload chrome slack file | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./out/slacktheme/chrome-slack.zip | |
asset_name: chrome-better_hangouts_chat_slack-${{ github.ref_name }}.zip | |
asset_content_type: application/zip | |
- name: "firefox-light web-ext build" | |
id: ff-build-light | |
uses: kewisch/action-web-ext@v1 | |
with: | |
cmd: build | |
source: out/lighttheme/firefox | |
- name: "firefox-light web-ext sign" | |
id: ff-sign-light | |
uses: kewisch/action-web-ext@v1 | |
with: | |
cmd: sign | |
source: ${{ steps.ff-build-light.outputs.target }} | |
channel: unlisted | |
apiKey: ${{ secrets.AMO_SIGN_KEY }} | |
apiSecret: ${{ secrets.AMO_SIGN_SECRET }} | |
timeout: 900000 | |
- name: upload firefox light file | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ${{ steps.ff-sign-light.outputs.target }} | |
asset_name: firefox-better_hangouts_chat_light-${{ github.ref_name }}.xpi | |
asset_content_type: application/zip | |
- name: "firefox-dark web-ext build" | |
id: ff-build-dark | |
uses: kewisch/action-web-ext@v1 | |
with: | |
cmd: build | |
source: out/darktheme/firefox | |
- name: "firefox-dark web-ext sign" | |
id: ff-sign-dark | |
uses: kewisch/action-web-ext@v1 | |
with: | |
cmd: sign | |
source: ${{ steps.ff-build-dark.outputs.target }} | |
channel: unlisted | |
apiKey: ${{ secrets.AMO_SIGN_KEY }} | |
apiSecret: ${{ secrets.AMO_SIGN_SECRET }} | |
timeout: 900000 | |
- name: upload firefox dark file | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ${{ steps.ff-sign-dark.outputs.target }} | |
asset_name: firefox-better_hangouts_chat_dark-${{ github.ref_name }}.xpi | |
asset_content_type: application/zip | |
- name: "firefox-slack web-ext build" | |
id: ff-build-slack | |
uses: kewisch/action-web-ext@v1 | |
with: | |
cmd: build | |
source: out/slacktheme/firefox | |
- name: "firefox-slack web-ext sign" | |
id: ff-sign-slack | |
uses: kewisch/action-web-ext@v1 | |
with: | |
cmd: sign | |
source: ${{ steps.ff-build-slack.outputs.target }} | |
channel: unlisted | |
apiKey: ${{ secrets.AMO_SIGN_KEY }} | |
apiSecret: ${{ secrets.AMO_SIGN_SECRET }} | |
timeout: 900000 | |
- name: upload firefox slack file | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ${{ steps.ff-sign-slack.outputs.target }} | |
asset_name: firefox-better_hangouts_chat_slack-${{ github.ref_name }}.xpi | |
asset_content_type: application/zip |