-
Notifications
You must be signed in to change notification settings - Fork 372
34 lines (29 loc) · 907 Bytes
/
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
name: Deploy
on:
push:
branches:
- main
- beta
jobs:
deploy:
name: Build and deploy
runs-on: ubuntu-latest
environment: deploy
steps:
# Checks out a copy of your repository.
- name: Checkout code
uses: actions/checkout@v2
# Builds code using bazelisk and copies the site folder out of the bazel symlinked dir.
- name: Build the site
uses: "docker://mattinsler/bazelisk:latest"
with:
args: bash -c "bazel build site/... && cp -r --dereference bazel-bin/site ./deploy"
# Deploy the site to Cloudflare.
- name: Publish
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: 4aa13cc00192d0927df8194260cb2ce8
projectName: asciiflow
directory: ./deploy
gitHubToken: ${{ secrets.GITHUB_TOKEN }}