Skip to content

Commit 77565ec

Browse files
authored
Refactor GitHub Actions for documentation deployment
Updated deployment steps to use peaceiris/actions-gh-pages for GitHub Pages.
1 parent 779668d commit 77565ec

1 file changed

Lines changed: 5 additions & 14 deletions

File tree

.github/workflows/deploy-docs.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,10 @@ jobs:
5353
env:
5454
NUXT_APP_BASE_URL: /nuxt-ui-formkit/
5555

56-
- name: Upload artifact
57-
uses: actions/upload-pages-artifact@v3
56+
- name: Deploy
57+
uses: peaceiris/actions-gh-pages@v4
5858
with:
59-
path: ./docs/.output/public
60-
61-
deploy:
62-
environment:
63-
name: github-pages
64-
url: ${{ steps.deployment.outputs.page_url }}
65-
runs-on: ubuntu-latest
66-
needs: build
67-
steps:
68-
- name: Deploy to GitHub Pages
69-
id: deployment
70-
uses: actions/deploy-pages@v4
59+
github_token: ${{ secrets.GITHUB_TOKEN }}
60+
publish_dir: ./docs/.output/public
61+
# cname: example.com # if wanna deploy to custom domain
7162

0 commit comments

Comments
 (0)