chore: new version #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Deploy to GitHub Pages π | |
on: | |
push: | |
branches: | |
- "master" | |
pull_request: | |
branches: [master] | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: 'pages' | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout π | |
uses: actions/checkout@v4 | |
- name: Pnpm setup π¦ | |
uses: pnpm/action-setup@v3 | |
with: | |
version: 9 | |
- name: Node.js setup π¦ | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "pnpm" | |
- name: Install dependencies π¦ | |
run: pnpm i | |
- name: Check π | |
run: pnpm lint | |
- name: Build π¨ | |
run: pnpm build | |
- name: Build web ππ¨ | |
run: pnpm build:web | |
- name: Setup Pages π¦ | |
uses: actions/configure-pages@v5 | |
- name: Upload artifact π | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: './dist' | |
- name: Deploy to GitHub Pages π | |
id: deployment | |
uses: actions/deploy-pages@v4 |