Skip to content

Commit

Permalink
website: Deploy to Cloudflare Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
kitten committed Jan 16, 2024
1 parent 0e35d76 commit c7c7dff
Show file tree
Hide file tree
Showing 4 changed files with 274 additions and 14 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
name: Site
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
deployments: write
steps:
- name: Checkout Repo
uses: actions/checkout@v2
Expand Down Expand Up @@ -48,15 +51,12 @@ jobs:
working-directory: website
run: pnpm run build

- name: Deploy to Netlify
uses: nwtgck/[email protected]
- name: Deploy to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
publish-dir: './website/dist'
production-branch: main
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Deploy from GitHub Actions"
enable-pull-request-comment: false
enable-commit-comment: false
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: gql-tada
workingDirectory: website
directory: dist
Loading

0 comments on commit c7c7dff

Please sign in to comment.