mirror of
https://github.com/alexgo-io/alex-sdk.git
synced 2026-01-12 14:25:02 +08:00
feat: add github action to automatically deploy on main branch
This commit is contained in:
11
.github/workflows/docs.yaml
vendored
11
.github/workflows/docs.yaml
vendored
@@ -5,9 +5,18 @@ on:
|
||||
branches:
|
||||
- main # or your default branch name
|
||||
|
||||
# Add this permissions block
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
@@ -27,7 +36,7 @@ jobs:
|
||||
run: pnpm install
|
||||
|
||||
- name: Build docs
|
||||
run: pnpm docs
|
||||
run: pnpm run docs
|
||||
|
||||
- name: Setup Pages
|
||||
uses: actions/configure-pages@v4
|
||||
|
||||
Reference in New Issue
Block a user