Skip to content

Commit f61bde0

Browse files
authored
feat: add github action config (#5)
* feat: add github action config * fix: change public chown * fix: error * fix: remove pr config * fix: change title and rm extra content
1 parent 58d3a83 commit f61bde0

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/main.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Deploy to GitHub Pages
4+
5+
# Controls when the action will run. Triggers the workflow on push or pull request
6+
# events but only for the master branch
7+
on:
8+
push:
9+
branches: [ source ]
10+
11+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
12+
jobs:
13+
# This workflow contains a single job called "build"
14+
build:
15+
# The type of runner that the job will run on
16+
runs-on: ubuntu-latest
17+
18+
# Steps represent a sequence of tasks that will be executed as part of the job
19+
steps:
20+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
21+
- uses: actions/checkout@v2
22+
23+
- name: Build and Deploy
24+
uses: JamesIves/github-pages-deploy-action@master
25+
env:
26+
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
27+
BASE_BRANCH: source
28+
BRANCH: master
29+
FOLDER: public
30+
BUILD_SCRIPT: yarn && yarn build
31+

0 commit comments

Comments
 (0)