-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (31 loc) · 852 Bytes
/
deploy.yml
File metadata and controls
32 lines (31 loc) · 852 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
name: Deploy
on:
push:
branches:
- dev
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
# fetch whole history (needed for blog article creation time to work correctly)
fetch-depth: 0
- uses: pnpm/action-setup@v4.2.0
- name: Use Node.js
uses: actions/setup-node@v6
with:
cache: 'pnpm'
node-version-file: '.nvmrc'
- run: pnpm i
- name: Build 🔧
run: pnpm build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: master
FOLDER: public
- name: on deployment success
if: env.deployment_status == 'success'
run: echo "Deployment success"