-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from AElfProject/feature/static
Feature/static
- Loading branch information
Showing
128 changed files
with
1,071 additions
and
18,357 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,9 +1,3 @@ | ||
BUILD_SERVER_BASE_URL=https://playground.test.aelf.dev | ||
SOLANG_BUILD_SERVER_BASE_URL=https://playground-next.test.aelf.dev | ||
SOLIDITY_ENABLED=false | ||
NEXT_PUBLIC_GOOGLE_ANALYTICS_ID= | ||
GITHUB_API_KEY= | ||
NEXT_PUBLIC_FAUCET_API_URL= | ||
NEXT_PUBLIC_GOOGLE_CAPTCHA_SITEKEY= | ||
NEXT_PUBLIC_AELFSCAN_GRAPHQL_ENDPOINT= | ||
NEXT_PUBLIC_TMRWDAO_GRAPHQL_ENDPOINT= | ||
VITE_GOOGLE_ANALYTICS_ID= | ||
VITE_FAUCET_API_URL= | ||
VITE_GOOGLE_CAPTCHA_SITEKEY= |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Deploy to S3 | ||
|
||
on: | ||
push: | ||
branches: [ "main", "develop" ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
build: | ||
environment: ${{ github.ref == 'refs/heads/main' && 'production' || 'development' }} | ||
permissions: | ||
contents: read | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: oven-sh/setup-bun@v2 | ||
- run: bun install | ||
- name: create env file | ||
run: | | ||
echo VITE_GOOGLE_ANALYTICS_ID=${{ vars.VITE_GOOGLE_ANALYTICS_ID }} >> .env | ||
echo VITE_FAUCET_API_URL=${{ vars.VITE_FAUCET_API_URL }} >> .env | ||
echo VITE_GOOGLE_CAPTCHA_SITEKEY=${{ vars.VITE_GOOGLE_CAPTCHA_SITEKEY }} >> .env | ||
- run: bun run build | ||
|
||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v2 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: ap-northeast-1 | ||
|
||
- name: Sync to S3 | ||
run: aws s3 sync ./build s3://${{ secrets.AWS_S3_BUCKET }} |
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 |
---|---|---|
@@ -1,37 +1,24 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
.yarn/install-state.gz | ||
|
||
# testing | ||
/coverage | ||
|
||
# next.js | ||
/.next/ | ||
/out/ | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
.vscode/ | ||
*.pem | ||
|
||
# debug | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# local env files | ||
.env*.local | ||
|
||
# vercel | ||
.vercel | ||
|
||
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
*.local | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.