tachiyomi-website/.github/workflows/deploy.yml

55 lines
1.2 KiB
YAML
Raw Normal View History

name: Deploy
2023-07-18 15:55:23 +02:00
on:
workflow_dispatch: {}
push:
branches:
- v3-vitepress
2023-07-18 15:55:23 +02:00
env:
2023-07-19 18:45:27 +02:00
VITE_BASE: /kodo/
2023-07-18 15:55:23 +02:00
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: "website"
2023-07-19 18:45:27 +02:00
permissions:
contents: read
pages: write
id-token: write
2023-07-19 18:45:27 +02:00
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
2023-07-19 18:45:27 +02:00
steps:
2023-07-19 18:45:27 +02:00
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
2023-07-19 18:45:27 +02:00
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
cache-dependency-path: "**/package-lock.json"
2023-07-19 18:45:27 +02:00
- name: Install and build
run: npm ci && npm run docs:build
- name: Configure pages
uses: actions/configure-pages@v2
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v1
with:
path: website/src/.vitepress/dist
2023-07-19 18:45:27 +02:00
- name: Deploy
id: deployment
uses: actions/deploy-pages@v1