From 03aa1be5b12ad5a015746149093bae3cbad6a71d Mon Sep 17 00:00:00 2001 From: ligi Date: Mon, 23 Jan 2023 07:41:49 +0100 Subject: [PATCH] Add the old files to website --- .github/workflows/build_and_deploy.yml | 12 +++++++++--- .../kotlin/org/ethereum/lists/chains/Main.kt | 18 ------------------ 2 files changed, 9 insertions(+), 21 deletions(-) diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index d18e3438..eed3c162 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -37,18 +37,24 @@ jobs: with: submodules: recursive if: ${{ github.event_name != 'pull_request' && steps.extract_branch.outputs.branch == 'master' }} - - name: Run install + - name: Build + run: | + ./gradlew run + - name: Run yarn install uses: borales/actions-yarn@v4 with: dir: 'website' cmd: install # will run `yarn install` command if: ${{ github.event_name != 'pull_request' && steps.extract_branch.outputs.branch == 'master' }} - - name: Test the app + - name: Run yarn build uses: borales/actions-yarn@v4 with: dir: 'website' cmd: run build # will run `yarn test` command - if: ${{ github.event_name != 'pull_request' && steps.extract_branch.outputs.branch == 'master' }} + if: ${{ github.event_name != 'pull_request' && steps.extract_branch.outputs.branch == 'master' }} + - name: Merge + run: | + cp -a output/. website/public/ - name: Deploy uses: JamesIves/github-pages-deploy-action@4.1.4 with: diff --git a/processor/src/main/kotlin/org/ethereum/lists/chains/Main.kt b/processor/src/main/kotlin/org/ethereum/lists/chains/Main.kt index eedab3b4..1ef364c4 100644 --- a/processor/src/main/kotlin/org/ethereum/lists/chains/Main.kt +++ b/processor/src/main/kotlin/org/ethereum/lists/chains/Main.kt @@ -103,24 +103,6 @@ private fun createOutputFiles() { File(buildPath, "chain_icons.json").writeText(chainIconJSONArray.toJsonString(prettyPrint = true)) File(buildPath, "shortNameMapping.json").writeText(shortNameMapping.toJsonString(prettyPrint = true)) - File(buildPath, "index.html").writeText( - """ - - - - - - - Page Redirection - - - If you are not redirected automatically, follow this link to chainlist.org. - - - """.trimIndent() - ) File(buildPath, ".nojekyll").createNewFile() File(buildPath, "CNAME").writeText("chainid.network")