@cryptotaxi247 / kubo / commits / 4d94e1901

chore: use common ipfs/*-actions in sync-release-assets (#8609)

Piotr Galar committed Dec 15, 2021 at 15:56 UTC 4d94e19019137fa40f298d633f63d722c70d50eb
1 file changed +3 -31
.github/workflows/sync-release-assets.yml
+3 -31
@@ -13,38 +13,10 @@ jobs:
13 sync-github-and-dist-ipfs-io:
14 runs-on: "ubuntu-latest"
15 steps:
16 - - name: Setup go
17 - uses: actions/setup-go@v2
16 + - uses: ipfs/download-ipfs-distribution-action@v1
17 + - uses: ipfs/start-ipfs-daemon-action@v1
18 with:
19 - go-version: '1.16'
20 - - uses: actions/cache@v2
21 - with:
22 - path: |
23 - ~/.cache/go-build
24 - ~/go/pkg/mod
25 - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
26 - restore-keys: |
27 - ${{ runner.os }}-go-
28 - - name: Build go-ipfs binary
29 - run: go install github.com/ipfs/go-ipfs/cmd/ipfs@latest
30 - - name: Initialize go-ipfs and start daemon
31 - run: |
32 - sudo sysctl -w net.core.rmem_max=2500000
33 - ipfs init --profile flatfs,server
34 - ipfs daemon --enable-gc=false &
35 - while (! ipfs id --api "/ip4/127.0.0.1/tcp/5001"); do sleep 1; done
36 - - name: Wait for go-ipfs to be ready
37 - shell: pwsh
38 - run: |
39 - for ($i = 0; $i -lt 10; $i++) {
40 - $addrs = ipfs id | jq .Addresses;
41 - if ($addrs -eq "null") {
42 - sleep 1
43 - } else {
44 - echo "Successfully started the daemon"
45 - exit 0
46 - }
47 - }
19 + args: --init --init-profile=flatfs,server --enable-gc=false
20 - uses: actions/setup-node@v2
21 with:
22 node-version: 14