-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 930 Bytes
/
deploy.yml
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
40
41
42
43
name: Deploy
on:
pull_request:
branches: [source]
push:
branches: [source]
jobs:
build-deploy:
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Checkout sources
- uses: actions/setup-node@v4
name: Setup Node.js
with:
node-version: "22"
cache: "yarn"
- run: yarn install --frozen-lockfile
name: Install dependencies
- run: yarn generate
name: Generate static site
- uses: actions/upload-artifact@v4
name: Upload artifact
with:
name: dist
path: dist
- uses: peaceiris/actions-gh-pages@v4
name: Deploy to branch
if: github.event_name != 'pull_request'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: master
publish_dir: ./dist
cname: ricardoboss.de