-
-
Notifications
You must be signed in to change notification settings - Fork 242
38 lines (36 loc) · 1018 Bytes
/
deploy.yaml
File metadata and controls
38 lines (36 loc) · 1018 Bytes
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
name: "Deploy to Cloudflare Pages (Production)"
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy:
runs-on: "ubuntu-latest"
permissions:
contents: read
deployments: write
pull-requests: write
steps:
- name: "checkout"
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: "setup node and pnpm"
uses: ./.github/actions/setup-node-pnpm
- name: "install dependencies"
run: "pnpm install"
- name: "build"
run: "pnpm build"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: "publish (push)"
id: "cloudflare-publish"
uses: AdrianGonz97/refined-cf-pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: "papermc-docs"
deploymentName: "Production"
directory: "dist"
githubToken: ${{ secrets.GITHUB_TOKEN }}