open-story-teller/.github/workflows/vitepress.yml
anthony@rabine.fr 44ba940b85
Some checks are pending
build-story-editor / build_linux (push) Waiting to run
build-story-editor / build_win32 (push) Waiting to run
Deploy-Documentation / deploy (push) Waiting to run
fix deprecated version of gh action
2025-02-02 20:52:07 +01:00

37 lines
896 B
YAML

name: Deploy-Documentation
on:
workflow_dispatch: {}
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
cache-dependency-path: '**/package-lock.json'
- run: npm ci
working-directory: docs
- name: Build
run: npm run docs:build
working-directory: docs
- uses: actions/configure-pages@v2
- uses: actions/upload-pages-artifact@v3
with:
path: docs/.vitepress/dist
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4