fix: account balance wording (#1365) #475
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
name: Deploy to Staging | |
on: | |
workflow_dispatch: | |
push: | |
branches: [master] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
environment: | |
name: staging | |
url: https://ads.bravesoftware.com | |
steps: | |
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
- name: Install pnpm | |
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3 | |
- name: Use Node.js | |
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 | |
with: | |
node-version-file: ".node-version" | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install | |
- run: pnpm check | |
- name: Build | |
env: | |
REACT_APP_SERVER_ADDRESS: ${{ secrets.REACT_STAGING_APP_SERVER_ADDRESS }} | |
REACT_APP_GIT_SHA1: ${{ github.sha }} | |
run: | | |
export REACT_APP_BUILD_TIME=$(date -Iseconds) | |
pnpm build | |
- name: Deploy static files | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_STAGING_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_STAGING_SECRET_ACCESS_KEY }} | |
AWS_REGION: us-west-2 | |
CLOUDFRONT_DISTRIBUTION_ID: ${{ secrets.CLOUDFRONT_STAGING_DISTRIBUTION_ID }} | |
run: | | |
cd build | |
aws s3 sync ./static/ "s3://ads-ui-staging/static/" --cache-control "max-age=31536000, public" | |
aws s3 sync . "s3://ads-ui-staging/" --exclude "static/*" --cache-control "max-age=60, public" | |
aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/*" |