Skip to content

release: bump version to v0.0.31 (#177) #97

release: bump version to v0.0.31 (#177)

release: bump version to v0.0.31 (#177) #97

Workflow file for this run

name: Deploy to Cloudflare Pages
on:
# Trigger the workflow every time you push to the `main` branch
# Using a different branch name? Replace `main` with your branch’s name
push:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:
# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v4
- name: Create .env file
env:
POSTHOG_WEB_ANALYTICS: ${{ secrets.POSTHOG_WEB_ANALYTICS }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
run: |
echo "PUBLIC_ANALYTICS_KEY=${{ secrets.POSTHOG_WEB_ANALYTICS }}" >> docs/.env
cd docs
npm install
cd ../pathfinder-rules/gen-script
go mod download
go run main.go
cd ../../docs
npm run build
npx wrangler pages deploy ./dist --project-name=codepathfinder --branch=main