File tree Expand file tree Collapse file tree 1 file changed +18
-13
lines changed Expand file tree Collapse file tree 1 file changed +18
-13
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- master
7
+ pull_requests :
7
8
8
9
jobs :
9
- build-and- deploy :
10
+ deploy :
10
11
runs-on : ubuntu-20.04
11
12
permissions :
12
13
contents : write
13
14
concurrency :
14
15
group : ${{ github.workflow }}-${{ github.ref }}
15
16
steps :
16
- - name : Checkout 🛎️
17
- uses : actions/checkout@v3
17
+ - uses : actions/checkout@v3
18
+ with :
19
+ fetch-depth : 0
18
20
19
- - name : Install Node ⚛️
21
+ - name : Install Node
20
22
uses : actions/setup-node@v3
21
23
with :
22
- node-version : ' 14'
24
+ node-version : ' 14.x'
25
+
26
+ - name : Install Packages
27
+ run : npm ci
23
28
24
- - name : Install Packages and Build 🔧
25
- run : |
26
- npm ci
29
+ - name : Build
30
+ run : npm run build
27
31
28
- - name : Deploy 🚀
29
- run : |
30
- git config user.email "${{ secrets.GIT_CONFIG_EMAIL }}"
31
- git config user.name "${{ secrets.GIT_CONFIG_NAME }}"
32
- npm run deploy
32
+ - name : Deploy
33
+ uses : peaceiris/actions-gh-pages@v3
34
+ if : ${{ github.ref == 'refs/heads/master' }}
35
+ with :
36
+ github_token : ${{ secrets.GITHUB_TOKEN }}
37
+ publish_dir : ./
You can’t perform that action at this time.
0 commit comments