Skip to content

Commit

Permalink
Merge branch 'iamoskvin/rewards_single_page' of https://github.com/je…
Browse files Browse the repository at this point in the history
…diswaplabs/analytics-dashboard-v2 into iamoskvin/rewards_single_page
  • Loading branch information
iamoskvin committed Mar 1, 2024
2 parents 402696e + 7f0756d commit 1e9dd7c
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/jediswap-rewards.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Release - Rewards

on:
workflow_dispatch:
inputs:

jobs:
build:
runs-on: ubuntu-latest
environment:
name: rewards
url: https://rewards.jediswap.xyz

steps:
- name: Checkout
uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'

- name: Install dependencies
run: yarn install --immutable

- name: Build Project
run: CI=false yarn build

- name: Configure AWS
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: us-east-1
- name: Deploy app build to S3 bucket
run: aws s3 sync ./build/ s3://$BUCKET_NAME
env:
BUCKET_NAME: ${{ secrets.AWS_S3_BUCKET_NAME }}

- name: Run Cache Invalidation
run: aws cloudfront create-invalidation --distribution-id $CDN_DISTRIBUTION_ID --paths /\*
env:
CDN_DISTRIBUTION_ID: ${{ secrets.AWS_CDN_DISTRIBUTION_ID }}

0 comments on commit 1e9dd7c

Please sign in to comment.