Skip to content

Commit

Permalink
fix refresh cdn & add refresh ipfs :release
Browse files Browse the repository at this point in the history
  • Loading branch information
foxundermoon committed Feb 1, 2020
1 parent b87572a commit d7ecc4f
Showing 1 changed file with 26 additions and 14 deletions.
40 changes: 26 additions & 14 deletions .github/workflows/auto_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,22 +126,23 @@ jobs:
release_name: Release ${{ env.VERSION }}.${{ steps.buildnumber.outputs.build_number }}
body: |
# release summary
| | |
| --------------- | |
| ASSETS_IPFS_CID | `${{ env.ASSETS_IPFS_CID }}` |
| ROOT_CID | `${{ env.IPFS_CID }}` |
| IPNS | `${{ env.IPNS_ID }}` |
# centralized
[dncov.fox.mn](https://dncov.fox.mn)
| item | value |
| --------------- | ------------------------ |
| assets ipfs CID | `${{ env.ASSETS_IPFS_CID }}` |
| entry cid | `${{ env.IPFS_CID }}` |
| entry ipns | `${{ env.IPNS_ID }}` |
# decentralized
# centralized deployed
- [https://dncov.fox.mn](https://dncov.fox.mn)
## global
https://ipfs.io/ipfs/${{ env.IPFS_CID }}
https://ipfs.infura.io/ipfs/${{ env.IPFS_CID }}
# decentralized deployed
## for chaina without proxy
http://ncov.fox.mn:2020/ipfs/${{ env.IPFS_CID }}
## global access
- https://ipfs.io/ipfs/${{ env.IPFS_CID }}
- https://ipfs.infura.io/ipfs/${{ env.IPFS_CID }}
## in Chaina without proxy
- http://ncov.fox.mn:2020/ipfs/${{ env.IPFS_CID }}
draft: false
prerelease: ${{ env.PRERELEASE }}
Expand Down Expand Up @@ -228,6 +229,17 @@ jobs:
name: upload.log
path: ./upload.log
- name: refresh-cdn
if: env.NEED_RELEASE == 'yes' && env.RELEASE_TYPE == 'release'
working-directory: ./cout
run: |
find . | grep -v '^./_next' |sed -e 's|./|https://dncov.fox.mn/|' | sed -n '1d;p' | qshell cdnrefresh
# --------------------- do last refresh ipfs ----------------------------
- name: refresh ipfs
if: env.NEED_RELEASE == 'yes' && env.RELEASE_TYPE == 'release'
run: |
qshell cdnrefresh https://fox.mn/index.html
curl https://ipfs.io/ipfs/${{ env.IPFS_CID }} &
curl https://ipfs.infura.io/ipfs/${{ env.IPFS_CID }} &
curl https://cloudflare-ipfs.com/ipfs/${{ env.IPFS_CID }} &
sleep 10
echo 'wait some second'

0 comments on commit d7ecc4f

Please sign in to comment.