Skip to content

Commit

Permalink
Merge pull request #65 from AElfProject/feature/static
Browse files Browse the repository at this point in the history
Feature/static
  • Loading branch information
yongenaelf authored Nov 19, 2024
2 parents 9df48f6 + d786bbc commit 3647899
Show file tree
Hide file tree
Showing 128 changed files with 1,071 additions and 18,357 deletions.
10 changes: 0 additions & 10 deletions .dockerignore

This file was deleted.

12 changes: 3 additions & 9 deletions .env
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=
3 changes: 0 additions & 3 deletions .eslintrc.json

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/s3.yml
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 }}
55 changes: 21 additions & 34 deletions .gitignore
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?
24 changes: 0 additions & 24 deletions Dockerfile

This file was deleted.

78 changes: 0 additions & 78 deletions app/api/build/route.ts

This file was deleted.

15 changes: 0 additions & 15 deletions app/api/get-proposal-info/route.ts

This file was deleted.

56 changes: 0 additions & 56 deletions app/api/get-repo-blobs/route.ts

This file was deleted.

21 changes: 0 additions & 21 deletions app/api/get-repo-branches/route.ts

This file was deleted.

21 changes: 0 additions & 21 deletions app/api/get-repo-info/route.ts

This file was deleted.

40 changes: 0 additions & 40 deletions app/api/get-repo-tree/route.ts

This file was deleted.

Loading

0 comments on commit 3647899

Please sign in to comment.