Skip to content

Commit

Permalink
add workflow to deploy to cloudflare pages
Browse files Browse the repository at this point in the history
  • Loading branch information
NotM32 committed Nov 10, 2024
1 parent 55507ec commit f104327
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/pages-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
on: [push]
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Deploy to Cloudflare Pages
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Nix
uses: cachix/install-nix-action@v30
- name: Build
run: nix build
- name: Publish
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: m32.io # e.g. 'my-project'
directory: result # e.g. 'dist'
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f104327

Please sign in to comment.