2020-05-21 22:28:22 +00:00
|
|
|
name: Build
|
|
|
|
on:
|
|
|
|
push:
|
2020-05-21 22:38:47 +00:00
|
|
|
branches:
|
|
|
|
- master
|
2020-05-21 22:52:47 +00:00
|
|
|
paths:
|
2020-06-01 16:16:45 +00:00
|
|
|
- yaml/*.yml
|
2020-05-24 00:35:07 +00:00
|
|
|
- md/*.md
|
2020-06-01 21:21:44 +00:00
|
|
|
- _build.js
|
2020-06-05 14:07:49 +00:00
|
|
|
- _wiki.js
|
2020-05-21 22:28:22 +00:00
|
|
|
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
|
2020-05-21 22:48:12 +00:00
|
|
|
run: node _build.js
|
2020-05-21 22:28:22 +00:00
|
|
|
- name: Commit
|
|
|
|
run: |
|
2020-05-24 00:36:32 +00:00
|
|
|
git add README.md
|
2020-05-21 22:28:22 +00:00
|
|
|
git config --local user.email "action@github.com"
|
|
|
|
git config --local user.name "GitHub Action"
|
2020-05-22 02:52:40 +00:00
|
|
|
git commit -m "Generated README.md"
|
2020-05-21 22:28:22 +00:00
|
|
|
- name: Push
|
|
|
|
uses: ad-m/github-push-action@master
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
2020-05-21 22:44:08 +00:00
|
|
|
branch: master
|
2020-06-02 21:20:31 +00:00
|
|
|
- name: Wiki
|
|
|
|
run: node _wiki.js
|
|
|
|
env:
|
|
|
|
REDDIT_USER: ${{ secrets.REDDIT_USER}}
|
|
|
|
REDDIT_PASS: ${{ secrets.REDDIT_PASS}}
|
|
|
|
REDDIT_CLIENT_ID: ${{ secrets.REDDIT_CLIENT_ID}}
|
|
|
|
REDDIT_CLIENT_SECRET: ${{ secrets.REDDIT_CLIENT_SECRET}}
|