Skip to content

Commit

Permalink
Remove staging deployment (#2272)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmance authored Dec 6, 2024
1 parent 1cafebe commit 408571c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 25 deletions.
25 changes: 2 additions & 23 deletions .github/workflows/update-prod-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ jobs:
domain: 'app.aave.com',
artifact: 'out',
build_path: 'out'
},
{
name: 'Staging',
domain: 'staging.aave.com',
artifact: 'out_staging',
build_path: 'out_staging'
}
]
environment:
Expand All @@ -39,18 +33,6 @@ jobs:
name: ${{ matrix.environment.artifact }}
path: ${{ matrix.environment.build_path }}

# Only for staging environment
- name: pinata
id: pinata
if: matrix.environment.name == 'Staging'
uses: aave/pinata-action@35662944e92cf082457973f10aa42e48df179b47
with:
PINATA_API_KEY: '${{ secrets.PINATA_API_KEY }}'
PINATA_SECRET_KEY: '${{ secrets.PINATA_SECRET_KEY }}'
PIN_ALIAS: 'app-aave-staging'
BUILD_LOCATION: './out_staging'
CID_VERSION: 1

- name: Pin to primary IPFS server
id: ipfs-primary
uses: ./.github/actions/ipfs-pin
Expand All @@ -60,25 +42,22 @@ jobs:
IPFS_SERVER: '${{ secrets.IPFS_PRIMARY_SERVER }}'
IPFS_SERVER_KEY: '${{ secrets.IPFS_PRIMARY_SERVER_KEY }}'
BUILD_PATH: ${{ matrix.environment.build_path }}
PINATA_HASH: ${{ matrix.environment.name == 'Production' && inputs.PINATA_HASH || steps.pinata.outputs.hash }}
PINATA_HASH: ${{ inputs.PINATA_HASH }}

- uses: aave/cloudflare-update-action@0f2084730a068fab162853c4e7cc40537233d34a
with:
CF_API_TOKEN: '${{ secrets.CF_API_TOKEN }}'
CF_ZONE_ID: '${{ secrets.CF_ZONE_ID }}'
HASH: ${{ matrix.environment.name == 'Production' && inputs.PINATA_HASH || steps.pinata.outputs.hash }}
HASH: ${{ inputs.PINATA_HASH }}
CF_DEPLOYMENT_DOMAIN: ${{ matrix.environment.domain }}

# Only for production environment
- name: prepare release
if: matrix.environment.name == 'Production'
run: |
cp .github/release-template.md ./release-notes.md
sed -i 's|<ipfs-hash>|${{ inputs.PINATA_HASH }}|g' ./release-notes.md
echo "TAG=release-$(date '+%Y-%m-%d_%H-%M')" >> ${GITHUB_ENV}
- name: Create GH release
if: matrix.environment.name == 'Production'
uses: ncipollo/release-action@4c75f0f2e4ae5f3c807cf0904605408e319dcaac # v1.10.0
with:
name: Production release
Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,13 @@ There's a github action commenting the appropriate IPFS hash embedded in the Clo

For ease of use:

- the DNS of [https://staging.aave.com](https://staging.aave.com) will always point to the latest main IPFS hash with all networks enabled
- the DNS of [https://app.aave.com](https://app.aave.com) will always point to the latest main IPFS hash with disabled test networks
- the DNS of [https://app.aave.com](https://app.aave.com) will always point to the latest main IPFS hash.

### Testnet Networks Access
The interface now includes a feature toggle for testnet networks. Users can enable test networks by:
1. Opening the Settings menu
2. Toggling the "Testnet mode" switch
3. Once enabled, testnet networks (like Sepolia, Mumbai, etc.) will become available in the network selection menu

### Links known to work at some point:

Expand Down

1 comment on commit 408571c

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit was deployed on ipfs

Please sign in to comment.