Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 39 additions & 33 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,48 @@ name: deploy
concurrency: testnet

on:
push:
branches:
- production
workflow_dispatch:
push:
branches:
- production
workflow_dispatch:

jobs:
deploy-landing-page-staging:
name: deployment
runs-on: ubuntu-20.04
environment: testnet
steps:
- uses: actions/checkout@v2
deploy-landing-page-staging:
name: deployment
runs-on: ubuntu-20.04
environment: testnet
steps:
- uses: actions/checkout@v2

# AWS IAM: starknet_codedeploy
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-southeast-1
# AWS IAM: starknet_codedeploy
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-southeast-1

- name: Install dependencies
run: yarn
- name: Build
run: yarn build
# env variables
- name: 'Setup .env'
run: |
touch .env
echo 'NEXT_PUBLIC_INFURA_MAINNET=${{secrets.NEXT_PUBLIC_INFURA_MAINNET}}' >> .env

- name: Deploy
# if deployment successful, you should find the site hosted at
# http://www.hashstack.finance
run: aws s3 sync --delete ./out s3://www.hashstack.finance
- name: Install dependencies
run: yarn
- name: Build
run: yarn build

- name: Invalidate CloudFront
uses: chetan/invalidate-cloudfront-action@v2
env:
DISTRIBUTION: E1OQYS9UHZLSM0
PATHS: "/*"
AWS_REGION: "us-east-1"
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Deploy
# if deployment successful, you should find the site hosted at
# http://www.hashstack.finance
run: aws s3 sync --delete ./out s3://www.hashstack.finance

- name: Invalidate CloudFront
uses: chetan/invalidate-cloudfront-action@v2
env:
DISTRIBUTION: E1OQYS9UHZLSM0
PATHS: '/*'
AWS_REGION: 'us-east-1'
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
60 changes: 33 additions & 27 deletions .github/workflows/staging-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,41 @@ name: deploy
concurrency: testnet

on:
push:
branches:
- development
pull_request:
branches:
- development
workflow_dispatch:
push:
branches:
- development
pull_request:
branches:
- development
workflow_dispatch:

jobs:
deploy-landing-page-staging:
name: deployment
runs-on: ubuntu-20.04
environment: testnet
steps:
- uses: actions/checkout@v2
deploy-landing-page-staging:
name: deployment
runs-on: ubuntu-20.04
environment: testnet
steps:
- uses: actions/checkout@v2

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-southeast-1
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-southeast-1

- name: Install dependencies
run: yarn
- name: Build
run: yarn build
# env variables
- name: 'Setup .env'
run: |
touch .env
echo 'NEXT_PUBLIC_INFURA_MAINNET=${{secrets.NEXT_PUBLIC_INFURA_MAINNET}}' >> .env

- name: Deploy
# if deployment successful, you should find the site hosted at
# http://landing-page-dev-hashstack.s3-website-ap-southeast-1.amazonaws.com
run: aws s3 sync --delete ./out s3://landing-page-dev-hashstack
- name: Install dependencies
run: yarn
- name: Build
run: yarn build

- name: Deploy
# if deployment successful, you should find the site hosted at
# http://landing-page-dev-hashstack.s3-website-ap-southeast-1.amazonaws.com
run: aws s3 sync --delete ./out s3://landing-page-dev-hashstack
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ yarn-error.log*
.pnpm-debug.log*

# local env files
.env
.env*.local

# vercel
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"react": "18",
"react-dom": "18",
"react-fast-marquee": "^1.6.0",
"starknet": "^6.23.1",
"tailwind-merge": "^2.6.0",
"tailwindcss-animate": "^1.0.7"
},
Expand Down
Loading
Loading