Skip to content

Commit

Permalink
Create main branch with deploy to cloudflare
Browse files Browse the repository at this point in the history
  • Loading branch information
lewish committed May 29, 2024
1 parent f9f13e4 commit de0b4bc
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy
on:
push:
branches:
- master
- main

jobs:
deploy:
Expand All @@ -19,11 +19,14 @@ jobs:
- name: Build the site
uses: "docker://mattinsler/bazelisk:latest"
with:
args: bash -c "bazel build site/... && cp -r --dereference bazel-bin/site ./gh-pages-deploy"
args: bash -c "bazel build site/... && cp -r --dereference bazel-bin/site ./deploy"

# Deploy the site to gh-pages.
- name: Deploy the site
uses: JamesIves/github-pages-deploy-action@4.0.0
# Deploy the site to Cloudflare.
- name: Publish
uses: cloudflare/pages-action@1
with:
branch: gh-pages
folder: gh-pages-deploy
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: 4aa13cc00192d0927df8194260cb2ce8
projectName: asciiflow
directory: ./deploy
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit de0b4bc

Please sign in to comment.