This commit is contained in:
Suzanne Soy 2023-11-27 16:19:47 +00:00
parent ea747f31f1
commit b95c4a1051

View File

@ -53,55 +53,31 @@ jobs:
id: deployment id: deployment
uses: actions/deploy-pages@v2 uses: actions/deploy-pages@v2
# - name: Download IPFS - name: Download IPFS
# run: ./.github/github_install_ipfs.sh run: ./.github/github_install_ipfs.sh
# - name: Print IPFS hash - name: Print IPFS hash
# run: PATH="/tmp/kubo:$PATH" ipfs cid base32 "$(ipfs add --ignore-rules-path "result/www/.ipfsignore" --pin=false --hidden -Qr "result/www/")" run: PATH="/tmp/kubo:$PATH" ipfs cid base32 "$(ipfs add --ignore-rules-path "result/www/.ipfsignore" --pin=false --hidden -Qr "result/www/")"
# - name: Upload to IPFS
# - name: Make tarball of website run: PATH="/tmp/kubo:$PATH" ./.github/pin-using-ipfs.sh
# run: mkdir -p "$RUNNER_TEMP" && tar --directory result/www/ -cvf "$RUNNER_TEMP/artifact.tar" . continue-on-error: true
# - name: Upload artifact env:
# uses: actions/upload-artifact@v3 IPFS_SWARM_CONNECT_TO: ${{ secrets.IPFS_SWARM_CONNECT_TO }}
# with: IPFS_REMOTE_API_ENDPOINT: ${{ secrets.IPFS_REMOTE_API_ENDPOINT }}
# name: github-pages IPFS_REMOTE_TOKEN: ${{ secrets.IPFS_REMOTE_TOKEN }}
# path: ${{ runner.temp }}/artifact.tar - name: Install OVH pip package
# if-no-files-found: error run: pip install ovh
# - name: Deploy to GitHub Pages - name: Update OVH _dnslink
# id: deployment run: export PATH="/tmp/kubo:$PATH"; export IPFS_HASH="$(ipfs cid base32 "$(ipfs add --ignore-rules-path "result/www/.ipfsignore" --pin=false --hidden -Qr "result/www/")")"; python ./.github/update-ovh.py >/dev/null 2>&1
# uses: actions/deploy-pages@v2 env:
# API_OVH_APPLICATION_KEY: ${{ secrets.API_OVH_APPLICATION_KEY }}
## - name: Setup Pages API_OVH_APPLICATION_SECRET: ${{ secrets.API_OVH_APPLICATION_SECRET }}
## uses: actions/configure-pages@v3 API_OVH_CONSUMER_KEY: ${{ secrets.API_OVH_CONSUMER_KEY }}
## - name: Upload artifact API_OVH_ENDPOINT: ${{ secrets.API_OVH_ENDPOINT }}
## uses: actions/upload-pages-artifact@v2 OVH_DNS_DOMAIN: ${{ secrets.OVH_DNS_DOMAIN }}
## with: OVH_DNS_RECORD_ID: ${{ secrets.OVH_DNS_RECORD_ID }}
## # Upload entire folder - name: Warm up IPFS gateway caches
## path: 'result/www/' run: PATH="/tmp/kubo:$PATH" ./.github/warm-up-gateway-caches.sh
## - name: Deploy to GitHub Pages - name: Update homepage URL
## id: deployment run: PATH="/tmp/kubo:$PATH" ./.github/github_update_homepage.sh
## uses: actions/deploy-pages@v2 env:
# API_TOKEN_FOR_UPDATE_HOMEPAGE: ${{ secrets.API_TOKEN_FOR_UPDATE_HOMEPAGE }}
# - name: Upload to IPFS
# run: PATH="/tmp/kubo:$PATH" ./.github/pin-using-ipfs.sh
# continue-on-error: true
# env:
# IPFS_SWARM_CONNECT_TO: ${{ secrets.IPFS_SWARM_CONNECT_TO }}
# IPFS_REMOTE_API_ENDPOINT: ${{ secrets.IPFS_REMOTE_API_ENDPOINT }}
# IPFS_REMOTE_TOKEN: ${{ secrets.IPFS_REMOTE_TOKEN }}
# - name: Install OVH pip package
# run: pip install ovh
# - name: Update OVH _dnslink
# run: export PATH="/tmp/kubo:$PATH"; export IPFS_HASH="$(ipfs cid base32 "$(ipfs add --ignore-rules-path "result/www/.ipfsignore" --pin=false --hidden -Qr "result/www/")")"; python ./.github/update-ovh.py >/dev/null 2>&1
# env:
# API_OVH_APPLICATION_KEY: ${{ secrets.API_OVH_APPLICATION_KEY }}
# API_OVH_APPLICATION_SECRET: ${{ secrets.API_OVH_APPLICATION_SECRET }}
# API_OVH_CONSUMER_KEY: ${{ secrets.API_OVH_CONSUMER_KEY }}
# API_OVH_ENDPOINT: ${{ secrets.API_OVH_ENDPOINT }}
# OVH_DNS_DOMAIN: ${{ secrets.OVH_DNS_DOMAIN }}
# OVH_DNS_RECORD_ID: ${{ secrets.OVH_DNS_RECORD_ID }}
# - name: Warm up IPFS gateway caches
# run: PATH="/tmp/kubo:$PATH" ./.github/warm-up-gateway-caches.sh
# - name: Update homepage URL
# run: PATH="/tmp/kubo:$PATH" ./.github/github_update_homepage.sh
# env:
# API_TOKEN_FOR_UPDATE_HOMEPAGE: ${{ secrets.API_TOKEN_FOR_UPDATE_HOMEPAGE }}