We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 309e78c commit 68ce77aCopy full SHA for 68ce77a
.github/workflows/deploy.yaml
@@ -0,0 +1,32 @@
1
+# workflow that builds production version of app and deploys it to GitHub Pages
2
+name: Deploy
3
+
4
+on:
5
+ push:
6
+ branches:
7
+ - main
8
9
+env:
10
+ CI: false
11
12
+jobs:
13
+ deploy:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - name: Checkout code
17
+ uses: actions/checkout@v2
18
+ - name: Set up Node
19
+ uses: actions/setup-node@v2
20
+ with:
21
+ node-version: "14"
22
+ - name: Install packages
23
+ run: yarn install
24
+ - name: Build app
25
+ run: yarn build
26
+ - name: Deploy to gh-pages
27
+ uses: peaceiris/actions-gh-pages@v3
28
29
+ keep_files: false
30
+ publish_dir: ./dist
31
+ publish_branch: gh-pages
32
+ github_token: ${{ secrets.GITHUB_TOKEN }}
0 commit comments