Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@ name: Build

on:
push:
paths-ignore:
- 'docs/**'
branches:
- main
- develop
tags:
- 'v*.*.*'
pull_request:
branches:
- main
- develop
paths-ignore:
- 'docs/**'
schedule:
- cron: '0 1 * * *'
merge_group:
Expand Down
67 changes: 67 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Docs

on:
push:
paths:
- 'docs/**'
branches:
- main
tags:
- 'v*.*.*'
pull_request:
paths:
- 'docs/**'
branches:
- main
schedule:
- cron: '0 1 * * *'
merge_group:

concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}
cancel-in-progress: true

permissions: read-all

jobs:
build-pages:
runs-on: ubuntu-24.04
steps:
- name: Check out Git repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Setup Node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version-file: .nvmrc
cache: npm
cache-dependency-path: 'docs/package-lock.json'

- name: Build
working-directory: docs
env:
DOCS_BASE: "/${{ github.event.repository.name }}/"
run: make build

- name: Setup Pages
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5

- name: Upload artifact
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
with:
path: docs/.vitepress/dist

deploy-pages:
runs-on: ubuntu-24.04
needs: [ build-pages ]
permissions:
pages: write
id-token: write
environment:
name: ${{ github.ref == 'refs/heads/main' && 'github-pages' || format('preview-{0}', github.ref_name) }}
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4

1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
23.11.1
Loading