Create build.yml

This commit is contained in:
Josh Moore 2020-05-21 16:28:22 -06:00 committed by GitHub
parent 4d56aa2c75
commit e89f47cfe5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 30 additions and 0 deletions

30
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,30 @@
name: Build
on:
push:
branches: [ automation ]
pull_request:
branches: [ automation ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 13.x
- name: Install dependencies
run: npm i
- name: Build
run: node _build.js
- name: Commit
run: |
git add README-test.md
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -m "[Action] Generate README.md"
- name: Push
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: automation