We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f587bb1 commit ad9d94cCopy full SHA for ad9d94c
.github/workflows/build.yml
@@ -1,7 +1,10 @@
1
-name: Build
+name: Build and Deploy
2
3
on:
4
- pull_request:
+ pull_request:
5
+ push:
6
+ branches:
7
+ - main
8
9
jobs:
10
build:
@@ -20,3 +23,14 @@ jobs:
20
23
yarn install --frozen-lockfile
21
24
yarn test
22
25
yarn build
26
+ cp -r public/* dist
27
+
28
+ - name: Deploy
29
+ if: ${{ github.ref == 'refs/heads/main' }}
30
+ uses: JamesIves/github-pages-deploy-action@4.1.5
31
+ with:
32
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33
+ BRANCH: gh-pages
34
+ FOLDER: dist
35
+ BUILD_SCRIPT: yarn install && yarn test && yarn build
36
0 commit comments