Add the old files to website

This commit is contained in:
ligi 2023-01-23 07:41:49 +01:00
parent 12f2a5e510
commit 03aa1be5b1
No known key found for this signature in database
GPG Key ID: 8E81894010ABF23D
2 changed files with 9 additions and 21 deletions

View File

@ -37,18 +37,24 @@ jobs:
with: with:
submodules: recursive submodules: recursive
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: Run install - name: Build
run: |
./gradlew run
- name: Run yarn install
uses: borales/actions-yarn@v4 uses: borales/actions-yarn@v4
with: with:
dir: 'website' dir: 'website'
cmd: install # will run `yarn install` command cmd: install # will run `yarn install` 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: Test the app - name: Run yarn build
uses: borales/actions-yarn@v4 uses: borales/actions-yarn@v4
with: with:
dir: 'website' dir: 'website'
cmd: run build # will run `yarn test` command 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 - name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.4 uses: JamesIves/github-pages-deploy-action@4.1.4
with: with:

View File

@ -103,24 +103,6 @@ private fun createOutputFiles() {
File(buildPath, "chain_icons.json").writeText(chainIconJSONArray.toJsonString(prettyPrint = true)) File(buildPath, "chain_icons.json").writeText(chainIconJSONArray.toJsonString(prettyPrint = true))
File(buildPath, "shortNameMapping.json").writeText(shortNameMapping.toJsonString(prettyPrint = true)) File(buildPath, "shortNameMapping.json").writeText(shortNameMapping.toJsonString(prettyPrint = true))
File(buildPath, "index.html").writeText(
"""
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=https://chainlist.org">
<script type="text/javascript">
window.location.href = "https://chainlist.org"
</script>
<title>Page Redirection</title>
</head>
<body>
If you are not redirected automatically, follow this <a href='https://chainlist.org'>link to chainlist.org</a>.
</body>
</html>
""".trimIndent()
)
File(buildPath, ".nojekyll").createNewFile() File(buildPath, ".nojekyll").createNewFile()
File(buildPath, "CNAME").writeText("chainid.network") File(buildPath, "CNAME").writeText("chainid.network")