forked from anoma/namada-docs
-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (36 loc) · 1.14 KB
/
community-deploy.yaml
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
name: Publish namada-community
on:
push:
paths:
- "packages/community/**"
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Publish namada-community to Cloudflare Pages
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "16"
- name: Install dependencies
run: npm install
- name: Install next-on-pages
run: npm install -g @cloudflare/next-on-pages@1
- name: Build page community page
run: npm run build:community:page
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: namada-community
directory: ./packages/community/.vercel/output/static
# Optional: Enable this if you want to have GitHub Deployments triggered
gitHubToken: ${{ secrets.GH_TOKEN }}
wranglerVersion: '3'