-
Notifications
You must be signed in to change notification settings - Fork 51
executable file
·54 lines (44 loc) · 1.42 KB
/
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
name: IPFS
on:
workflow_dispatch:
push: #uncomment to enable
branches: ["next"] #uncomment to enable
jobs:
deploy-ipfs:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node-version: ['18.x']
os: ['ubuntu-latest']
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install project dependencies
run: yarn --prefer-offline
id: install
- run: IPFS_BUILD=true yarn export
- name: Upload to IPFS
uses: aquiladev/[email protected]
id: ipfs
with:
path: './ipfs/'
host: ${{ secrets.IPFS_HOST }}
port: ${{ secrets.IPFS_PORT }}
protocol: http
- name: Get Timestamp Action
uses: nanzm/[email protected]
id: time
with:
format: 'YYYYMMDDHHmmss'
- name: Create Release
uses: Hs1r1us/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: "${{ steps.time.outputs.time }}/${{ steps.ipfs.outputs.hash }}"
release_name: ${{ steps.ipfs.outputs.hash }}
body: '[ipfs://${{ steps.ipfs.outputs.hash }}](ipfs://${{ steps.ipfs.outputs.hash }}) - [ipfs.io](https://ipfs.io/ipfs/${{ steps.ipfs.outputs.hash }})'