Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gk0Wk committed Dec 6, 2023
1 parent 18ae425 commit b579e85
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,19 @@ on:

jobs:
deploy:
permissions:
contents: write
pages: write
id-token: write
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup NodeJS
uses: actions/setup-node@v2-beta
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
node-version: 18

- name: Cache dependencies
uses: actions/cache@v3
Expand All @@ -29,14 +33,22 @@ jobs:
${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
${{ runner.os }}-node-
- name: Install Dependencies
run: npm install -g pnpm && pnpm install --no-frozen-lockfile
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 'latest'
run_install: true

- name: Build Library and static website
run: pnpm run publish && pnpm run publish:offline

- name: Deploy
uses: peaceiris/actions-gh-pages@v3

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
# Upload entire repository
path: ./dist

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1

0 comments on commit b579e85

Please sign in to comment.