From e89f47cfe56b19c88db32a710c7d994000b76a57 Mon Sep 17 00:00:00 2001 From: Josh Moore Date: Thu, 21 May 2020 16:28:22 -0600 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..9ab072b --- /dev/null +++ b/.github/workflows/build.yml @@ -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