mirror of
https://github.com/alexpasmantier/television.git
synced 2025-07-29 06:11:37 +00:00
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
name: deploy docs
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'website/**'
|
|
- 'docs/**'
|
|
- 'CONTRIBUTING.md'
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
jobs:
|
|
deploy:
|
|
name: Build Docusaurus to gh-pages
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Setup node env
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: "website/.nvmrc"
|
|
- name: Install pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 10
|
|
run_install: false
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
working-directory: website
|
|
- name: Build website
|
|
run: pnpm run build
|
|
working-directory: website
|
|
- name: Deploy to GitHub Pages
|
|
uses: peaceiris/actions-gh-pages@v4
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: website/build
|
|
user_name: github-actions[bot]
|
|
user_email: github-actions[bot]@users.noreply.github.com
|