-
-
Notifications
You must be signed in to change notification settings - Fork 340
130 lines (126 loc) · 4.5 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
name: release-extra-experimental
on:
workflow_run:
workflows: [Release]
types:
- completed
workflow_dispatch:
env:
NODE_VERSION: 22
# NODE_OPTIONS: --openssl-legacy-provider
permissions:
contents: write
jobs:
deploy-docs:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'pnpm'
- run: pnpm install
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: pnpm install
# 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/checkout@v4
- uses: pnpm/action-setup@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'pnpm'
- run: pnpm install
- run: pnpm 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@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'pnpm'
- name: Build extensions
run: |
pnpm install
pnpm build:ci
pnpm 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