set up new workflow and migrate to .forgejo dir #5

Merged
baobeld merged 17 commits from refactor/deploy-to-netlify-through-forgejo-workflow into main 2026-08-11 20:55:29 -04:00
5 changed files with 29 additions and 2 deletions
Showing only changes of commit 00006a013d - Show all commits

View file

@ -0,0 +1,25 @@
name: Deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: pnpm/setup@v1
with:
version: 11
runtime: node@24
cache: true
- name: Build
run: pnpm build
- name: Deploy to Netlify
run: npx -y netlify-cli deploy --prod --dir=build
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}

View file

@ -17,6 +17,7 @@ Personal website and blog for Benjamin Palko, deployed on Netlify.
- **pnpm is the canonical local package manager**.
- The GitHub Actions PR gate (`.github/workflows/pr.yml`) runs `pnpm`. Keep both working; document pnpm commands.
- Deploys to Netlify run via Forgejo Actions (`.forgejo/workflows/deploy.yml`) on push to `main`. It needs `NETLIFY_AUTH_TOKEN` and `NETLIFY_SITE_ID` as Forgejo repo secrets.
## Scripts (pnpm)

View file

@ -49,7 +49,9 @@ See `AGENTS.md` for the full authoring workflow.
## Deployment
Netlify deploys the `main` branch automatically. The GitHub Actions PR gate (`.github/workflows/pr.yml`) runs lint, typecheck, tests, and build on every pull request using `pnpm`. Before shipping, verify locally with:
The site deploys to Netlify on every push to `main` via a Forgejo Actions workflow (`.forgejo/workflows/deploy.yml`): it installs with pnpm, runs `pnpm build`, and deploys the `build/` directory with `netlify-cli`. Requires `NETLIFY_AUTH_TOKEN` and `NETLIFY_SITE_ID` configured as repository secrets in Forgejo. Netlify's GitHub-app continuous deployment is disabled.
The GitHub Actions PR gate (`.github/workflows/pr.yml`) runs on the GitHub mirror on every pull request using `pnpm`. Before shipping, verify locally with:
```bash
pnpm lint && pnpm check && pnpm test && pnpm build

View file

@ -1,3 +1,2 @@
[build]
command = "pnpm run build"
publish = "build"