-
Notifications
You must be signed in to change notification settings - Fork 14
39 lines (31 loc) · 921 Bytes
/
build-and-deploy.yml
File metadata and controls
39 lines (31 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Build and Deploy
on:
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '23.5.0'
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 10.4.1
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm run build
- name: Deploy to GitHub Pages
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
pnpm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}