Skip to content

Commit

Permalink
Merge branch 'main' into hell
Browse files Browse the repository at this point in the history
  • Loading branch information
powercasgamer authored Jun 13, 2024
2 parents 546ed60 + 6700777 commit 699e78a
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "Deploy to Cloudflare Pages"

on: [push]

jobs:
deploy:
runs-on: "ubuntu-latest"
permissions:
contents: read
deployments: write
steps:
- name: "checkout"
uses: "actions/checkout@v4"
with:
fetch-depth: 0
- name: "setup node"
uses: "actions/setup-node@v4"
with:
cache: "pnpm"
node-version: 18
- name: "install dependencies"
run: "pnpm install"
- name: "build"
run: "pnpm run build"
- name: "publish"
uses: "cloudflare/pages-action@v1"
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: "papermc-docs"
directory: "build"
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 699e78a

Please sign in to comment.