From a63f48a279be76dd7708988e70a294124188158c Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Thu, 9 Nov 2023 20:13:23 +0100 Subject: [PATCH] fix: switch to new dnslink updater (#2175) This solves problem described in https://github.com/ipfs/distributions/issues/1053 by switching to new tool like we did in https://github.com/ipfs/distributions/pull/1055 --- .github/workflows/ci.yml | 14 ++++++++++++-- README.md | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a5069ff7f..a265aff73 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -131,14 +131,24 @@ jobs: script: | core.setFailed('Pinning did not succeed') + # dnslink-dnsimple requires go + - uses: actions/setup-go@v4 + if: github.ref == 'refs/heads/main' + with: + go-version: "1.20.x" + + - name: Set up dnslink updater + if: github.ref == 'refs/heads/main' + run: go install github.com/ipfs/dnslink-dnsimple@v0.1.0 + # dev dnslink is updated on each main branch update - - run: npx dnslink-dnsimple --domain dev.webui.ipfs.io --link /ipfs/${{ steps.ipfs.outputs.cid }} + - run: dnslink-dnsimple --domain dev.webui.ipfs.io --record _dnslink --link /ipfs/${{ steps.ipfs.outputs.cid }} if: github.ref == 'refs/heads/main' env: DNSIMPLE_TOKEN: ${{ secrets.DNSIMPLE_TOKEN }} # production dnslink is updated on release (during tag build) - - run: npx dnslink-dnsimple --domain webui.ipfs.io --link /ipfs/${{ steps.ipfs.outputs.cid }} + - run: dnslink-dnsimple --domain webui.ipfs.io --record _dnslink --link /ipfs/${{ steps.ipfs.outputs.cid }} if: github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch' env: DNSIMPLE_TOKEN: ${{ secrets.DNSIMPLE_TOKEN }} diff --git a/README.md b/README.md index fb246d9d2..605a7df96 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # IPFS Web UI -> A web interface to [IPFS](https://ipfs.io), shipped with [Kubo](https://github.com/ipfs/kubo), and [ipfs-desktop](https://github.com/ipfs/ipfs-desktop/). +> A web interface to [IPFS](https://ipfs.tech), shipped with [Kubo](https://github.com/ipfs/kubo), and [ipfs-desktop](https://github.com/ipfs/ipfs-desktop/). > > Check on your node stats, explore the IPLD powered merkle forest, see peers around the world and manage your files, without needing to touch the CLI.