forked from Uniswap/default-token-list
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.36 KB
/
deploy.yaml
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
46
47
name: Deploy
on:
# manual trigger
workflow_dispatch:
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '12'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Tests pass
run: yarn test
- name: Publish to NPM
uses: JS-DevTools/npm-publish@18351461ae08dde235c0ccee0633ec905f0b9a52
with:
token: ${{ secrets.NPM_TOKEN }}
- name: Pin to IPFS
id: upload
uses: anantaramdas/[email protected]
with:
pin-name: 419Labs Default Token List ${{ needs.bump_version.outputs.new_tag }}
path: 'build/419labs-default.tokenlist.json'
pinata-api-key: ${{ secrets.PINATA_API_KEY }}
pinata-secret-api-key: ${{ secrets.PINATA_API_SECRET_KEY }}
- name: Update DNS with new IPFS hash
env:
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
RECORD_DOMAIN: 'uniswap.org'
RECORD_NAME: '_dnslink.tokens'
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }}
uses: textileio/cloudflare-update-dnslink@0fe7b7a1ffc865db3a4da9773f0f987447ad5848
with:
cid: ${{ steps.upload.outputs.hash }}