forked from w3f/polkadot-wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
Showing
3 changed files
with
0 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]" | ||
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |
This file was deleted.
Oops, something went wrong.