Skip to content

Commit

Permalink
Deploy Documentation updated
Browse files Browse the repository at this point in the history
  • Loading branch information
smh0505 committed Sep 2, 2024
1 parent e6076d7 commit 89997c3
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,18 @@ on:
branches: [main]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- uses: actions/checkout@v4
with:
Expand All @@ -21,9 +30,15 @@ jobs:

- name: Build VuePress docs
run: pnpm docs:build

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/.vuepress/dist

- name: Deploy to Github Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/.vuepress/dist
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 89997c3

Please sign in to comment.