mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 10:23:24 +00:00
doc deployment workflow
This commit is contained in:
@@ -1 +0,0 @@
|
||||
shamefully-hoist=true
|
19980
.docs/package-lock.json
generated
Normal file
19980
.docs/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
9811
.docs/pnpm-lock.yaml
generated
9811
.docs/pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
37
.github/workflows/docs.yml
vendored
37
.github/workflows/docs.yml
vendored
@@ -7,28 +7,33 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
|
||||
- name: Install packages
|
||||
run: cd .docs && npm ci
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
|
||||
- name: Build
|
||||
run: cd .docs && npm run build
|
||||
- name: Install packages
|
||||
working-directory: ./.docs
|
||||
run: npm install
|
||||
|
||||
- name: Build project
|
||||
working-directory: ./.docs
|
||||
run: npm run generate
|
||||
|
||||
- name: Upload
|
||||
uses: actions/upload-pages-artifact@v2
|
||||
with:
|
||||
path: ./.docs/.vitepress/dist
|
||||
- name: Upload production-ready build files
|
||||
uses: actions/upload-pages-artifact@v1
|
||||
with:
|
||||
path: ./.docs/.output/public
|
||||
|
||||
deploy:
|
||||
name: Deploy
|
||||
needs: build
|
||||
permissions:
|
||||
pages: write
|
||||
|
Reference in New Issue
Block a user