mirror of
https://github.com/tycrek/degoogle
synced 2024-11-18 03:25:32 +00:00
32 lines
711 B
YAML
32 lines
711 B
YAML
name: Build
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- degoogle.yml
|
|
- md/*.md
|
|
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 -m "Generated README.md"
|
|
- name: Push
|
|
uses: ad-m/github-push-action@master
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
branch: master
|