-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 1001 Bytes
/
publish.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
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Publish to Cloudflare Pages
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install builder
uses: jaxxstorm/action-install-gh-release@v1.10.0
with: # Grab the latest version
repo: jtarchie/builder
token: ${{ secrets.GITHUB_TOKEN }}
cache: enable
- name: Build
run: |
builder --source-path ./written/ --build-path ./docs/
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: 945954ae6af55e6e4af004fb7772fdc5
projectName: jtarchie
directory: docs
# Optional: Enable this if you want to have GitHub Deployments triggered
gitHubToken: ${{ secrets.GITHUB_TOKEN }}