mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-09 01:35:56 +01:00
Also publish to IPFS
This commit is contained in:
parent
d227f5e697
commit
f666e2099a
1 changed files with 22 additions and 0 deletions
22
.github/workflows/publish.yml
vendored
22
.github/workflows/publish.yml
vendored
|
@ -62,3 +62,25 @@ jobs:
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
id: deployment
|
id: deployment
|
||||||
uses: actions/deploy-pages@v1
|
uses: actions/deploy-pages@v1
|
||||||
|
|
||||||
|
ipfs-publish:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: build
|
||||||
|
steps:
|
||||||
|
- name: Publish to IPFS
|
||||||
|
id: Publish
|
||||||
|
uses: aquiladev/ipfs-action@master
|
||||||
|
with:
|
||||||
|
path: ./public
|
||||||
|
service: filebase
|
||||||
|
pinName: ${{ github.event.repository.name }}
|
||||||
|
filebaseBucket: microsites
|
||||||
|
filebaseKey: ${{ secrets.FILEBASE_KEY }}
|
||||||
|
filebaseSecret: ${{ secrets.FILEBASE_SECRET }}
|
||||||
|
- name: Update DNS record
|
||||||
|
uses: XueMoMo/actions-coudflare-dns@v1.0.1
|
||||||
|
with:
|
||||||
|
name: ${{ github.event.repository.name }}
|
||||||
|
cid: ${{ steps.Publish.outputs.cid }}
|
||||||
|
token: ${{ secrets.CLOUDFLARE_TOKEN }}
|
||||||
|
zone: ${{ secrets.CLOUDFLARE_ZONE_ID }}
|
||||||
|
|
Loading…
Reference in a new issue