Skip to content

Commit 1e250f6

Browse files
committed
Merge branch 'code' into file-upload
2 parents 6a2f2ee + 50fa7e1 commit 1e250f6

File tree

5 files changed

+114
-90
lines changed

5 files changed

+114
-90
lines changed

.github/main.workflow

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
workflow "Publish to IPFS" {
2+
resolves = ["pin to cluster"]
3+
on = "push"
4+
}
5+
6+
action "npm install" {
7+
uses = "actions/npm@59b64a598378f31e49cb76f27d6f3312b582f680"
8+
args = "ci"
9+
}
10+
11+
action "npm run build" {
12+
uses = "actions/npm@59b64a598378f31e49cb76f27d6f3312b582f680"
13+
args = "run build"
14+
needs = ["npm install"]
15+
}
16+
17+
action "pin to cluster" {
18+
uses = "ipfs-shipyard/ipfs-github-action@master"
19+
secrets = ["GITHUB_TOKEN", "CLUSTER_USER", "CLUSTER_PASSWORD"]
20+
args = "/github/workspace/dist"
21+
needs = ["npm run build"]
22+
}

0 commit comments

Comments
 (0)