-
Notifications
You must be signed in to change notification settings - Fork 40
57 lines (46 loc) · 1.53 KB
/
build_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
46
47
48
49
50
51
52
53
54
55
56
57
name: build_cyb_ipfs
on:
push:
branches:
- master
jobs:
build_cyb:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.14.x]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn install
- name: Build cyb for IPFS
run: yarn build-ipfs
env:
NODE_OPTIONS: '--max-old-space-size=8192'
CHAIN_ID: 'bostrom'
- name: Deploy to IPFS 👽
id: ipfs
uses: dasein108/[email protected]
with:
path_to_add: ./build
cluster_host: ${{ secrets.IPFS_CLUSTER_HOST }}
ipfs_gateway: ${{ vars.IPFS_GATEWAY }}
cluster_user: ${{ secrets.IPFS_CLUSTER_USER }}
cluster_password: ${{ secrets.IPFS_CLUSTER_PASSWORD }}
- name: Send build results to telegram
env:
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
if: env.TELEGRAM_TOKEN != null
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: |
⚙️ ${{ github.actor }} -> ${{ github.event.commits[0].message }}
🏷 See changes: https://github.com/${{ github.repository }}/commit/${{github.sha}}
👽 IPFS URL: ${{ steps.ipfs.outputs.url }}