2020-04-02 02:31:07 -04:00
|
|
|
name: auto build data
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths:
|
|
|
|
- data/**
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2022-10-04 19:10:51 -04:00
|
|
|
if: "!contains(github.event.head_commit.message, '[skip ci]') && github.repository == 'ipfs/awesome-ipfs'"
|
2020-04-02 02:31:07 -04:00
|
|
|
steps:
|
2020-12-07 09:27:57 -05:00
|
|
|
- uses: actions/checkout@v2.3.4
|
|
|
|
- uses: actions/setup-node@v1.4.4
|
2020-04-02 02:31:07 -04:00
|
|
|
with:
|
|
|
|
node-version: 13
|
|
|
|
- name: build
|
|
|
|
run: |
|
|
|
|
npm --version
|
|
|
|
node --version
|
|
|
|
npm ci
|
|
|
|
npm run lint
|
|
|
|
npm run build
|
2020-05-13 06:08:27 -04:00
|
|
|
- name: Commit files
|
|
|
|
run: |
|
|
|
|
git config --local user.email "action@github.com"
|
|
|
|
git config --local user.name "GitHub Action"
|
|
|
|
git commit -m "Rebuild" -a
|
2020-04-02 02:31:07 -04:00
|
|
|
- name: Push changes
|
|
|
|
if: success()
|
2020-12-07 09:27:57 -05:00
|
|
|
uses: ad-m/github-push-action@v0.6.0
|
2020-04-02 02:31:07 -04:00
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|