-
Notifications
You must be signed in to change notification settings - Fork 4
53 lines (43 loc) · 1.38 KB
/
release_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
name: Build and Release to IPFS
on:
push:
tags:
- 'v*' # triggered whenever a new tag (previxed with "v") is pushed to the repository
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install dependencies
run: npm install
- name: Run build script
run: npm run build-static:mainnet
- name: Create tarball
run: tar -czf app.tar.gz ./out/
- name: pinata
id: pinata
uses: aave/pinata-action@a3409e26f4cb859a2d9984109317caac53db5f68
with:
PINATA_API_KEY: ${{ secrets.PINATA_API_KEY }}
PINATA_SECRET_KEY: ${{ secrets.PINATA_SECRET_KEY }}
PIN_ALIAS: 'app-blend-${{ github.ref_name }}'
BUILD_LOCATION: './out'
CID_VERSION: 1
- name: Create release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: ipfs-${{ github.ref_name }}
body: |
## Blend UI Release
This release contains the latest build of the Blend UI.
IPFS CID: `${{ steps.pinata.outputs.hash }}`'
draft: false
prerelease: false
files: app.tar.gz