Skip to content

Commit

Permalink
update dnslink for dist.ipfs.io on ci
Browse files Browse the repository at this point in the history
  • Loading branch information
petar committed Sep 30, 2021
1 parent f7801d8 commit b9ee851
Showing 1 changed file with 22 additions and 13 deletions.
35 changes: 22 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: CI

on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
inputs:
dist_root:
description: 'DIST_ROOT'
required: true
default: '/ipns/dist.ipfs.io'
on: push
# push:
# branches:
# - master
# pull_request:
# branches:
# - master
# workflow_dispatch:
# inputs:
# dist_root:
# description: 'DIST_ROOT'
# required: true
# default: '/ipns/dist.ipfs.io'

env:
DIST_ROOT: ${{ github.event.inputs.custom_dist_root || '/ipns/dist.ipfs.io' }} # content root used for calculating diff to build
Expand Down Expand Up @@ -99,6 +99,10 @@ jobs:
runs-on: "ubuntu-latest"
needs: sign-macos
steps:
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 15
- uses: actions/checkout@v2
- name: Retrieve signed artifacts
uses: actions/download-artifact@v2
Expand Down Expand Up @@ -141,6 +145,11 @@ jobs:
with:
name: diff
path: diff
# production dnslink is updated on release (during tag build)
- run: npx dnslink-dnsimple --domain dist.ipfs.io --link /ipfs/${{ steps.cid-reader.outputs.CID }}
env:
DNSIMPLE_TOKEN: ${{ secrets.DNSIMPLE_TOKEN }}


diff:
needs: persist
Expand Down

0 comments on commit b9ee851

Please sign in to comment.