Skip to content

Commit 1f66895

Browse files
authored
Create build.yml
1 parent 6109196 commit 1f66895

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: gh-build
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Build
16+
run: |
17+
yarn install
18+
node_modules/.bin/webpack --config webpack.config.js
19+
cp -r build /build
20+
rm -rf /src
21+
22+
- name: Sigin to git
23+
run: |
24+
git config --local user.email "action@github.com"
25+
git config --local user.name "GitHub Action"
26+
27+
- name: Commit
28+
run: |
29+
git add .
30+
git commit -m "GitHub Actions"
31+
32+
- name: Push commit
33+
uses: ad-m/github-push-action@master
34+
with:
35+
github_token: ${{ secrets.GITHUB_TOKEN }}
36+
branch: "gh-pages"

0 commit comments

Comments
 (0)