Skip to content

Commit

Permalink
update deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nixel2007 committed Oct 29, 2024
1 parent 2b84b6d commit b2ac11f
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@ on:
- master

jobs:
build-and-deploy:

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
build:

runs-on: ubuntu-latest

Expand All @@ -30,7 +25,17 @@ jobs:
- name: Build the site
run: npm run docs:build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
- name: Setup Pages
uses: actions/configure-pages@v3

- name: Upload Artifact
uses: actions/upload-pages-artifact@v1
with:
publish_dir: ./.vitepress/dist
path: "/.vitepress/dist"
deploy:

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v2

0 comments on commit b2ac11f

Please sign in to comment.