Skip to content

release-extra-experimental #123

release-extra-experimental

release-extra-experimental #123

name: Release (experimental extras)
on:
workflow_run:
workflows: [Release]
types:
- completed
workflow_dispatch:
env:
NODE_VERSION: 18
# NODE_OPTIONS: --openssl-legacy-provider
permissions:
contents: write
jobs:
deploy-docs:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ env.NODE_VERSION }}
- run: yarn
env:
GITHUB_TOKEN: ${{ github.token }}
# https://developers.cloudflare.com/pages/how-to/use-direct-upload-with-continuous-integration/#use-github-actions
- name: Publish to cloudflare pages ✨
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: altair-site
directory: packages/altair-docs/.vitepress/dist
gitHubToken: ${{ github.token }}
# deploy-docs:
# name: Deploy docs
# runs-on: ubuntu-latest
# # if: ${{ github.event.workflow_run.conclusion == 'success' }}
# steps:
# - uses: actions/[email protected]
# - name: Use Node.js
# uses: actions/setup-node@v1
# with:
# node-version: 16
# - run: yarn
# env:
# GITHUB_TOKEN: ${{ github.token }}
# - name: Deploy to github pages 🚀
# uses: JamesIves/[email protected]
# with:
# branch: gh-pages # The branch the action should deploy to.
# folder: packages/altair-docs/.vitepress/dist # The folder the action should deploy.
extension-publish:
name: Publish firefox addon
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ env.NODE_VERSION }}
- run: yarn
- run: yarn build-ext
- uses: trmcnvn/firefox-addon@v1
continue-on-error: true
with:
uuid: '{c336a627-bbea-4dbb-aa77-83899b52149a}'
xpi: extension-builds/mozilla-build/build.zip
manifest: extension-builds/mozilla-files/manifest.json
api-key: ${{ secrets.FIREFOX_API_KEY }}
api-secret: ${{ secrets.FIREFOX_API_SECRET }}
- uses: wdzeng/edge-addon@v1
continue-on-error: true
with:
product-id: f725e625-c035-444d-b373-fba0e41855c1
zip-path: extension-builds/chrome-build/build.zip
client-id: ${{ secrets.EDGE_CLIENT_ID }}
client-secret: ${{ secrets.EDGE_CLIENT_SECRET }}
access-token-url: ${{ secrets.EDGE_ACCESS_TOKEN_URL }}
- uses: wdzeng/chrome-extension@v1
continue-on-error: true
with:
extension-id: flnheeellpciglgpaodhkhmapeljopja
zip-path: extension-builds/chrome-build/build.zip
client-id: ${{ secrets.CHROME_CLIENT_ID }}
client-secret: ${{ secrets.CHROME_CLIENT_SECRET }}
refresh-token: ${{ secrets.CHROME_REFRESH_TOKEN }}
- uses: trmcnvn/chrome-addon@v2
continue-on-error: true
with:
refresh-token: ${{ secrets.CHROME_REFRESH_TOKEN }}
client-id: ${{ secrets.CHROME_CLIENT_ID }}
client-secret: ${{ secrets.CHROME_CLIENT_SECRET }}
zip: extension-builds/chrome-build/build.zip
extension: flnheeellpciglgpaodhkhmapeljopja
chrome-extension-upload:
name: Publish webextension
runs-on: ubuntu-latest
continue-on-error: true
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ env.NODE_VERSION }}
- name: Build extensions
run: |
yarn
yarn lerna bootstrap
yarn build-ext
- name: Upload & release
uses: mnao305/[email protected]
with:
file-path: extension-builds/chrome-build/build.zip
extension-id: flnheeellpciglgpaodhkhmapeljopja
client-id: ${{ secrets.CHROME_CLIENT_ID }}
client-secret: ${{ secrets.CHROME_CLIENT_SECRET }}
refresh-token: ${{ secrets.CHROME_REFRESH_TOKEN }}
# TODO: Publish browser extensions (mozilla, edge)
# https://github.com/fregante/web-ext-submit