Skip to content

Commit 8ef4a3a

Browse files
authored
chore: add manual doc uploader
1 parent d1ddb74 commit 8ef4a3a

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Release Docs for Caly-Xano CLI
2+
3+
on:
4+
workflow_dispatch
5+
6+
jobs:
7+
release:
8+
name: Release Docs
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repo
12+
uses: actions/checkout@v4
13+
14+
- name: Install pnpm
15+
uses: pnpm/action-setup@v4
16+
with:
17+
version: 10
18+
run_install: true
19+
20+
- name: Setup Node
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 20.x
24+
registry-url: 'https://registry.npmjs.org'
25+
scope: '@calycode'
26+
always-auth: true
27+
env:
28+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
29+
30+
- name: Install dependencies
31+
run: pnpm install
32+
33+
- name: Update the docs
34+
run: pnpm build:docs
35+
36+
# Upload docs to GCP ONLY after publishing
37+
- name: Authenticate GCP
38+
uses: google-github-actions/auth@v3
39+
with:
40+
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
41+
42+
- name: Upload docs folder to GCP
43+
uses: google-github-actions/upload-cloud-storage@v3
44+
with:
45+
path: 'docs'
46+
destination: 'calycode.com/cli'

0 commit comments

Comments
 (0)