Compare commits
No commits in common. "7d663a4981b54b2d9757fc4fa7a2fc85b60ce84b" and "63fd7322f2a4b6d1ca358f2fa1d8dc94ea98c8a2" have entirely different histories.
7d663a4981
...
63fd7322f2
@ -80,33 +80,30 @@ jobs:
|
||||
name: react-app-wasm
|
||||
path: app
|
||||
|
||||
pin:
|
||||
name: Pin to cluster node
|
||||
needs: build
|
||||
web3-storage:
|
||||
name: Push to web3.storage
|
||||
needs: merge
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-latest
|
||||
outputs:
|
||||
cid: ${{ steps.pin.outputs.cid }}
|
||||
cid: ${{ steps.web3.outputs.cid }}
|
||||
steps:
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: react-app-wasm
|
||||
path: app
|
||||
path: react-app-wasm
|
||||
|
||||
- name: pin
|
||||
id: pin
|
||||
uses: docker://gitea.bruyant.xyz/alexandre/ipfs-node-pin:main
|
||||
- name: Push to web3.storage
|
||||
uses: web3-storage/add-to-web3@v1
|
||||
id: web3
|
||||
with:
|
||||
ipfs_host: "ipfs-api.ipfs.svc"
|
||||
ipfs_port: "5001"
|
||||
path_to_add: app
|
||||
- name: print CID
|
||||
run: echo ${{ steps.pin.outputs.cid }}
|
||||
web3_token: ${{ secrets.WEB3_STORAGE_TOKEN }}
|
||||
path_to_add: react-app-wasm
|
||||
|
||||
- run: echo ${{ steps.web3.outputs.cid }}
|
||||
|
||||
update-dns:
|
||||
name: Update OVH DNS
|
||||
needs: [pin]
|
||||
needs: [web3-storage]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: OVH alter DNS record
|
||||
@ -117,7 +114,7 @@ jobs:
|
||||
consumer-key: ${{ secrets.OVH_CONSUMER_KEY }}
|
||||
dns-zone: bruyant.xyz
|
||||
record-id: 5218627602
|
||||
target: "dnslink=/ipfs/${{ needs.pin.outputs.cid }}"
|
||||
target: "dnslink=/ipfs/${{ needs.web3-storage.outputs.cid }}"
|
||||
|
||||
- name: OVH refresh DNS zone
|
||||
uses: CrispyBaguette/ovh-dns-refresh-action@v1.0.1
|
Loading…
Reference in New Issue
Block a user