This repository has been archived by the owner on Aug 26, 2024. It is now read-only.
Merge pull request #431 from amo13/patch-1 #188
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- yaml/*.yml | |
- md/*.md | |
- _build.js | |
- _wiki.js | |
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.md | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git commit --allow-empty -m "Generated README.md" | |
- name: Push | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: master | |
- 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}} |