Skip to content

Commit ad9c437

Browse files
authored
Merge branch 'master' into fix-ffp-results
2 parents ef821bb + 5dc6fa9 commit ad9c437

1 file changed

Lines changed: 37 additions & 34 deletions

File tree

.github/workflows/main.yml

Lines changed: 37 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,43 @@
11
name: Build & Deploy
22

33
on:
4-
push:
5-
branches:
6-
- master
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- main
710

811
jobs:
9-
build:
10-
name: Build
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/checkout@v1
14-
- name: Install Dependencies
15-
run: npm i
16-
- name: Build
17-
run: npm run export
18-
- name: Archive Build
19-
uses: actions/upload-artifact@master
20-
with:
21-
name: public
22-
path: public
12+
build:
13+
name: Build
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v1
17+
- name: Install Dependencies
18+
run: npm i
19+
- name: Build
20+
run: npm run export
21+
- name: Archive Build
22+
uses: actions/upload-artifact@master
23+
with:
24+
name: public
25+
path: public
2326

24-
deploy:
25-
name: Deploy
26-
needs: build
27-
runs-on: ubuntu-latest
28-
steps:
29-
- name: Checkout Repo
30-
uses: actions/checkout@master
31-
- name: Download Artifact
32-
uses: actions/download-artifact@master
33-
with:
34-
name: public
35-
path: deploy
36-
- name: GitHub Pages action
37-
uses: peaceiris/actions-gh-pages@v3.7.3
38-
with:
39-
github_token: ${{ secrets.GITHUB_TOKEN }}
40-
publish_dir: deploy
27+
deploy:
28+
name: Deploy
29+
needs: build
30+
runs-on: ubuntu-latest
31+
steps:
32+
- name: Checkout Repo
33+
uses: actions/checkout@master
34+
- name: Download Artifact
35+
uses: actions/download-artifact@master
36+
with:
37+
name: public
38+
path: deploy
39+
- name: GitHub Pages action
40+
uses: peaceiris/actions-gh-pages@v3.7.3
41+
with:
42+
github_token: ${{ secrets.GITHUB_TOKEN }}
43+
publish_dir: deploy

0 commit comments

Comments
 (0)