From 66cfbaadc90f1006279212174ef34ef2d36cd5a2 Mon Sep 17 00:00:00 2001 From: bloxster Date: Tue, 15 Oct 2024 10:21:16 +0200 Subject: [PATCH] updates to page deployment and minor corrections --- .github/dependabot.yml | 6 ++++ .github/workflows/pages-deployment.yaml | 42 +++++++++++++++---------- src/basic-usage.md | 2 +- src/basic/networks.md | 3 -- src/basic/node.md | 3 ++ src/usage.md | 1 - 6 files changed, 35 insertions(+), 22 deletions(-) create mode 100644 .github/dependabot.yml delete mode 100644 src/usage.md diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..9096371 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" \ No newline at end of file diff --git a/.github/workflows/pages-deployment.yaml b/.github/workflows/pages-deployment.yaml index b9c7567..4a27f25 100644 --- a/.github/workflows/pages-deployment.yaml +++ b/.github/workflows/pages-deployment.yaml @@ -5,24 +5,32 @@ on: branches: - main +env: + MDBOOK_VERSION: v0.4.40 + jobs: - deploy: + deploy-cloudflare: runs-on: ubuntu-latest + permissions: + contents: read + deployments: write steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Setup Node.js - uses: actions/setup-node@v2 - with: - node-version: '16.x' - - - name: Install dependencies - run: npm install - - - name: Build and deploy - env: - NODE_AUTH_TOKEN: ${{ secrets.CLOUDFLARE_PAGES_TOKEN }} + - name: Checkout + uses: actions/checkout@v4 + - name: Install latest mdbook + run: | + url="https://github.com/rust-lang/mdbook/releases/download/$MDBOOK_VERSION/mdbook-$MDBOOK_VERSION-x86_64-unknown-linux-gnu.tar.gz" + mkdir mdbook + curl -sSL $url | tar -xz --directory=./mdbook + echo `pwd`/mdbook >> $GITHUB_PATH + - name: Build Book run: | - npm run build - npm run deploy + # This assumes your book is in the root of your repository. + # Just add a `cd` here if you need to change to another directory. + mdbook build + - name: Publish + uses: cloudflare/wrangler-action@v3 + with: + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + command: pages deploy book --project-name=${{ secrets.CLOUDFLARE_PROJECT }} --commit-dirty=true \ No newline at end of file diff --git a/src/basic-usage.md b/src/basic-usage.md index 00214e2..85f05bc 100644 --- a/src/basic-usage.md +++ b/src/basic-usage.md @@ -24,7 +24,7 @@ The default node is archive node. * ```--chain=mainnet```, add the flag --chain=goerli for Goerli testnet, --chain=sepolia for Sepolia testnet or --chain=holesky for Holesky testnet. -* --http.addr="0.0.0.0" --http.api=eth,web3,net,debug,trace,txpool to use RPC and e.g. be able to connect your [wallet](basic/wallet.md). +* ```--http.addr="0.0.0.0" --http.api=eth,web3,net,debug,trace,txpool``` to use RPC and e.g. be able to connect your [wallet](basic/wallet.md). * To increase download speed add ```--torrent.download.rate=512mb``` (default is 16mb) diff --git a/src/basic/networks.md b/src/basic/networks.md index b988660..5e213bb 100644 --- a/src/basic/networks.md +++ b/src/basic/networks.md @@ -7,9 +7,6 @@ Utilize the flag `--chain=` to synchronize with one of the supported networ ./build/bin/erigon --chain=holesky ``` - - - # Mainnets |Chain | Tag| ChainId| diff --git a/src/basic/node.md b/src/basic/node.md index c903c29..ccb4a50 100644 --- a/src/basic/node.md +++ b/src/basic/node.md @@ -15,6 +15,9 @@ If you want to run a validator and produce blocks, **staking** is achievable alr | Research | No | No | **Yes** | | Staking | No | **Yes** | **Yes** | + +To switch type of node, you must first delete the ```/chaindata``` folder in the chosen ```--datadir``` directory. + ## Archive node The traditional Archive Node remains the default, providing complete historical data. diff --git a/src/usage.md b/src/usage.md deleted file mode 100644 index e2a86b0..0000000 --- a/src/usage.md +++ /dev/null @@ -1 +0,0 @@ -# Basic Usage