-
Notifications
You must be signed in to change notification settings - Fork 366
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- 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-beta | ||
directory: ./deploy | ||
gitHubToken: ${{ secrets.GITHUB_TOKEN }} |