Skip to content

Commit

Permalink
Remove IPFS refs (w3f#4351)
Browse files Browse the repository at this point in the history
* Remove IPFS refs

* Update deploy-kusama-staging.yml

* Update deploy-polkadot-prod.yml

* Update deploy-polkadot-staging.yml

* Delete ipfs-cluster-pin.js
  • Loading branch information
DrW3RK authored Jan 24, 2023
1 parent fb737a9 commit eb6f38e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 245 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/deploy-kusama-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,34 +19,6 @@ jobs:
with:
fetch-depth: 0

# - name: Clone and run the site
# run: |
# sudo apt-get install netcat
# yarn
# yarn kusama:start &
# while ! nc -z localhost 3000; do
# sleep 1
# echo waiting for website up...
# done
# yarn kusama:pdf

# - name: Upload PDF
# uses: actions/upload-artifact@v2
# with:
# name: kusama-wiki
# path: kusama-guide/static/kusama-wiki.pdf

# - name: Build
# run: yarn; yarn kusama:build
# env:
# BUILDING: true

# - name: Upload to IPFS
# uses: aquiladev/[email protected]
# with:
# path: ./kusama-guide/build
# timeout: 120000

- name: Publish
run: |
git config --global user.email "[email protected]"
Expand All @@ -55,12 +27,3 @@ jobs:
yarn && yarn kusama:build && echo "staging.kusama.network" > kusama-guide/static/CNAME && GIT_USER=w3fdeploy PUBLISHING=true PROJECT_NAME=kusama-guide-staging yarn run kusama:publish-gh-pages
# setup ipfs cluster tools
# wget https://dist.ipfs.io/ipfs-cluster-ctl/v0.14.0/ipfs-cluster-ctl_v0.14.0_linux-amd64.tar.gz
# tar xf ./ipfs-cluster-ctl_v0.14.0_linux-amd64.tar.gz
# chmod +x ./ipfs-cluster-ctl/ipfs-cluster-ctl
# export PATH=$PATH:`pwd`/ipfs-cluster-ctl
# which ipfs-cluster-ctl
# node ./scripts/ipfs-cluster-pin.js --auth ${{ secrets.CLUSTER_BASIC_AUTH_USER }}:${{ secrets.CLUSTER_BASIC_AUTH_PASSWORD }} --websiteDir ./kusama-guide/build --pinName kusama-guide-staging
48 changes: 0 additions & 48 deletions .github/workflows/deploy-polkadot-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,58 +19,10 @@ jobs:
with:
fetch-depth: 0

# - name: Clone and run the site
# run: |
# sudo apt-get install netcat
# yarn
# yarn polkadot:start &
# while ! nc -z localhost 3000; do
# sleep 1
# echo waiting for website up...
# done
# yarn polkadot:pdf

# - name: Upload PDF
# uses: actions/upload-artifact@v2
# with:
# name: polkadot-wiki
# path: polkadot-wiki/static/polkadot-wiki.pdf

# - name: Build
# run: yarn; yarn polkadot:build
# env:
# BUILDING: true

# - name: Upload PDF to IPFS
# id: ipfs_pdf
# uses: aquiladev/[email protected]
# with:
# path: ./polkadot-wiki/static/polkadot-wiki.pdf
# timeout: 120000

# - name: Inject
# run: yarn; yarn polkadot:inject
# env:
# IPFS_PDF_HASH: ${{ steps.ipfs_pdf.outputs.hash }}

# - name: Upload to IPFS
# uses: aquiladev/[email protected]
# with:
# path: ./polkadot-wiki/build/polkadot-wiki
# timeout: 120000

- name: Publish
run: |
git config --global user.email "[email protected]"
git config --global user.name "Polkadot Wiki CI"
echo "machine github.com login w3fdeploy password ${{ secrets.ACCESS_KEY }}" > ~/.netrc
yarn && yarn polkadot:build && echo "staging.polkadot.network" > polkadot-wiki/static/CNAME && GIT_USER=w3fdeploy PUBLISHING=true PROJECT_NAME=polkadot-wiki-staging yarn run polkadot:publish-gh-pages
# setup ipfs cluster tools
# wget https://dist.ipfs.io/ipfs-cluster-ctl/v0.14.0/ipfs-cluster-ctl_v0.14.0_linux-amd64.tar.gz
# tar xf ./ipfs-cluster-ctl_v0.14.0_linux-amd64.tar.gz
# chmod +x ./ipfs-cluster-ctl/ipfs-cluster-ctl
# export PATH=$PATH:`pwd`/ipfs-cluster-ctl
# node ./scripts/ipfs-cluster-pin.js --auth ${{ secrets.CLUSTER_BASIC_AUTH_USER}}:${{ secrets.CLUSTER_BASIC_AUTH_PASSWORD}} --websiteDir ./polkadot-wiki/build --pinName polkadot-wiki-staging
160 changes: 0 additions & 160 deletions scripts/ipfs-cluster-pin.js

This file was deleted.

0 comments on commit eb6f38e

Please sign in to comment.