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 f376c25 commit 610b73fCopy full SHA for 610b73f
.github/workflows/build.yml
.github/workflows/deploy.yml renamed to .github/workflows/ci.yml
@@ -1,12 +1,13 @@
1
-name: Deploy
+name: Build and Deploy
2
3
on:
4
+ pull_request:
5
push:
6
branches:
7
- main
8
9
jobs:
- deploy:
10
+ build_deploy:
11
runs-on: ubuntu-latest
12
steps:
13
- name: Checkout
@@ -23,11 +24,11 @@ jobs:
23
24
yarn test
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
- BUILD_SCRIPT: yarn install && yarn test && yarn build
0 commit comments