-
Notifications
You must be signed in to change notification settings - Fork 83
51 lines (45 loc) · 1.46 KB
/
release-hash.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
46
47
48
49
50
51
name: Release Hash
on:
workflow_dispatch:
inputs:
cid:
name: cid
description: IPFS Hash (if blank, pulled from latest main's build)
signature:
name: Signature
description: Signature (if blank, pulled via Seacrest)
jobs:
build:
name: Release Hash
runs-on: ubuntu-latest
environment: Production
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install Release Dependencies
run: yarn install --ignore-optional --ignore-platform
- name: Download artifact
uses: dawidd6/action-download-artifact@v2
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow: build-workflow.yml
workflow_conclusion: success
branch: main
name: .release
if: github.event.inputs.cid == ''
- name: Seacrest
uses: hayesgm/seacrest@b87fb76eca4d03573060a86f4850395f40442087
with:
wallet_connect_project_id: ${{secrets.WALLET_CONNECT_PROJECT_ID}}
requested_network: mainnet
if: github.event.inputs.signature == ''
- name: Push IPFS Release
run: node scripts/release.js
env:
ETHEREUM_NODE: http://localhost:8585
CID: '${{github.event.inputs.cid}}'
SIGNATURE: '${{ github.event.inputs.signature }}'