Skip to content

Merge pull request #1083 from makerdao/MIP102c2-SP27-update #1935

Merge pull request #1083 from makerdao/MIP102c2-SP27-update

Merge pull request #1083 from makerdao/MIP102c2-SP27-update #1935

Workflow file for this run

name: Deploy to IPFS
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
environment: prod
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
with:
persist-credentials: false
sparse-checkout: |
MIP*
sparse-checkout-cone-mode: false
- name: Deploy to IPFS
id: ipfs
uses: aquiladev/ipfs-action@master
with:
path: ../mips
service: filebase
pinName: 'mips-${{ vars.ENV }}'
filebaseBucket: ${{ secrets.FILEBASE_BUCKET }}
filebaseKey: ${{ secrets.FILEBASE_KEY }}
filebaseSecret: ${{ secrets.FILEBASE_SECRET }}
- name: Update DNSLink record in Cloudflare
id: cloudflare-dnslink
run: |
curl --request PATCH \
--url https://api.cloudflare.com/client/v4/zones/${{ secrets.CLOUDFLARE_ZONE_ID }}/web3/hostnames/${{ secrets.CLOUDFLARE_HOSTNAME_ID }} \
-H "Authorization: Bearer ${{ secrets.CLOUDFLARE_API_TOKEN }}" \
-H 'Content-Type: application/json' \
--data '{
"description": "DNS record for MIPs on IPFS",
"dnslink": "/ipfs/${{ steps.ipfs.outputs.cid }}"
}'