Skip to content

Commit

Permalink
Merge branch 'fix/tx-crash'
Browse files Browse the repository at this point in the history
  • Loading branch information
gMonty committed Jan 14, 2025
2 parents fe90b0f + 010aa8c commit 7ed3ea2
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 2 deletions.
73 changes: 73 additions & 0 deletions .github/workflows/web-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Deploy

on:
push:
branches: [master]
tags: [v*]

release:
types: [published]

jobs:
deploy:
name: Deployment
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/app

steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Checkout code
uses: actions/checkout@v2

- name: Set up node
uses: actions/setup-node@v2
with:
node-version: 16

- name: Cache yarn cache
uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

- name: Install dependencies
run: yarn install

- name: Build website
run: yarn build

- 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: ${{ secrets.AWS_DEFAULT_REGION }}

# Script to deploy to the dev environment
- name: 'Deploy to S3: Dev'
if: github.ref == 'refs/heads/master'
run: aws s3 sync out s3://${{ secrets.AWS_DEV_BUCKET_NAME }}/current --delete

- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)

# Script to upload release files
- name: 'Upload release build files for production'
if: startsWith(github.ref, 'refs/tags/v')
run: aws s3 sync out s3://${{ secrets.AWS_DEV_BUCKET_NAME }}/releases/${{ steps.get_version.outputs.VERSION }} --delete

# Script to prepare production deployments
- run: bash ./.github/scripts/prepare_production_deployment.sh
if: success() && startsWith(github.ref, 'refs/tags/v')
working-directory: ./
env:
PROD_DEPLOYMENT_HOOK_TOKEN: ${{ secrets.PROD_DEPLOYMENT_HOOK_TOKEN }}
PROD_DEPLOYMENT_HOOK_URL: ${{ secrets.PROD_DEPLOYMENT_HOOK_URL }}
VERSION_TAG: ${{ steps.get_version.outputs.VERSION }}
1 change: 1 addition & 0 deletions packages/app/next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
reactStrictMode: true,
}

Expand Down
3 changes: 1 addition & 2 deletions packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"build": "next build",
"start": "next start",
"lint": "next lint",
"format": "prettier '(components|pages)/**/*.(ts|tsx)' -w",
"static": "next build && next export"
"format": "prettier '(components|pages)/**/*.(ts|tsx)' -w"
},
"dependencies": {
"@gnosis.pm/safe-apps-provider": "^0.9.3",
Expand Down

0 comments on commit 7ed3ea2

Please sign in to comment.