forked from dydxfoundation/dip
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.14 KB
/
upload-ipfs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Upload IPFS
on:
pull_request:
branches:
- master
jobs:
upload-to-ipfs:
name: dip-uploader
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.event.pull_request.head.ref }}
- name: Rename dip to upper case
run: cd content/dips && bash toUpper.sh || true && cd ../..
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install dependencies
run: npm install
- name: Parse Markdown
run: npm run parse-markdown
- name: Upload to Pinata and the Graph IPFS
env:
PINATA_KEY: ${{ secrets.PINATA_KEY }}
PINATA_SECRET: ${{ secrets.PINATA_SECRET }}
run: npm run upload:pinata-thegraph
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
author_name: GitHub Actions
author_email: 41898282+github-actions[bot]@users.noreply.github.com
message: '[PIPELINE] Committed IPFS uploads'
add: '.'