Skip to content

Transfer builds and deployments to Github #1

Transfer builds and deployments to Github

Transfer builds and deployments to Github #1

Workflow file for this run

name: Deploy
on:
push:
paths:
- src/**
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Publish to Cloudflare Pages
steps:
- name: Checkout
uses: actions/checkout@v4
# Run a build step here if your project requires
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 21.x
cache: npm
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build --if-present
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: lilium-orientalis-library
directory: .vercel/output/static
# Optional: Enable this if you want to have GitHub Deployments triggered
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
# Optional: Switch what branch you are publishing to.
# By default this will be the branch which triggered this workflow
branch: main
# Optional: Change the working directory
#workingDirectory: my-site
# Optional: Change the Wrangler version, allows you to point to a specific version or a tag such as `beta`
wranglerVersion: "3"