mirror of
https://github.com/Instadapp/chains.git
synced 2024-07-29 22:37:19 +00:00
Add the old files to website
This commit is contained in:
parent
12f2a5e510
commit
03aa1be5b1
12
.github/workflows/build_and_deploy.yml
vendored
12
.github/workflows/build_and_deploy.yml
vendored
|
@ -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:
|
||||||
|
|
|
@ -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")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user