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:
|
2023-06-16 06:48:18 -04:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3
|
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()
|
2023-06-16 06:48:18 -04:00
|
|
|
run: git push
|