Skip to content

Commit

Permalink
ci: cloudflare pages
Browse files Browse the repository at this point in the history
  • Loading branch information
leomotors committed Oct 8, 2023
1 parent 41804d1 commit f4950fa
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 33 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/ci.yaml

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Deploy

on:
push:
branches:
- main

jobs:
pages:
name: Cloudflare Pages
runs-on: ubuntu-latest

permissions:
contents: read
deployments: write

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v2

- name: Setup node with cache
uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build project
run: pnpm run build

- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
projectName: thinc-knowledge
directory: dist

0 comments on commit f4950fa

Please sign in to comment.