mirror of
https://github.com/sussy-code/providers.git
synced 2026-01-11 20:10:17 +00:00
doc deployment workflow
This commit is contained in:
parent
9c6b61b4f9
commit
f7c829a5f0
4 changed files with 20001 additions and 9828 deletions
|
|
@ -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
9811
.docs/pnpm-lock.yaml
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue