Skip to content

the mission

the mission #30

Workflow file for this run

name: website
on:
push:
branches: [ main ]
paths:
- 'docs/**'
- 'src/**'
- 'blog/**'
- 'static/**'
- '.github/workflows/ci.yml'
- 'package.json'
- 'pnpm-lock.yaml'
- 'vite.config.ts'
- 'tsconfig.json'
- 'index.html'
pull_request:
branches: [ main ]
paths:
- 'docs/**'
- 'src/**'
- 'blog/**'
- 'static/**'
- '.github/workflows/ci.yml'
- 'package.json'
- 'pnpm-lock.yaml'
- 'vite.config.ts'
- 'tsconfig.json'
- 'index.html'
permissions:
contents: write
pages: write
id-token: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build website
run: pnpm run build
deploy:
needs: test
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build website
run: pnpm run build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
cname: reifydb.com