-
-
Notifications
You must be signed in to change notification settings - Fork 323
105 lines (101 loc) · 3.4 KB
/
experimental-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
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/checkout@v2.3.1
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ env.NODE_VERSION }}
- run: yarn build-docs
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: site/src/.vuepress/dist
gitHubToken: ${{ github.token }}
# deploy-docs:
# name: Deploy docs
# runs-on: ubuntu-latest
# # if: ${{ github.event.workflow_run.conclusion == 'success' }}
# steps:
# - uses: actions/checkout@v2.3.1
# - name: Use Node.js
# uses: actions/setup-node@v1
# with:
# node-version: 16
# - run: yarn build-docs
# env:
# GITHUB_TOKEN: ${{ github.token }}
# - name: Deploy to github pages 🚀
# uses: JamesIves/github-pages-deploy-action@4.1.6
# with:
# branch: gh-pages # The branch the action should deploy to.
# folder: site/src/.vuepress/dist # The folder the action should deploy.
extension-publish:
name: Publish firefox addon
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.1
- 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
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: trmcnvn/chrome-addon@v2
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
# 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/chrome-extension-upload@1.1.1
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