-
-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (38 loc) · 901 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
name: Deploy
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: lts/*
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn build
- uses: actions/upload-artifact@v3
with:
name: dist-files
path: public/
deploy:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: dist-files
path: public/
- uses: crazy-max/ghaction-github-pages@v3
with:
target_branch: gh-pages
keep_history: true
build_dir: public/
fqdn: jiripudil.cz
jekyll: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}