Skip to content

Commit

Permalink
chore(ci): update docs deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
anehx committed Jul 5, 2024
1 parent 900e892 commit b2e6fbe
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,27 @@ jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- uses: wyvox/action-setup-pnpm@v3
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 18

node-version: 20
cache: pnpm
- name: Install Dependencies
run: pnpm install --no-lockfile
- name: Generate docs
run: pnpm build

- name: Deploy to GH pages
uses: peaceiris/actions-gh-pages@v4
- name: Upload Artifact
uses: actions/upload-pages-artifact@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
path: "./dist"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit b2e6fbe

Please sign in to comment.