-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #839 from morpho-org/merge/main-dev-2
Sync `dev`
- Loading branch information
Showing
14 changed files
with
377 additions
and
438 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,32 @@ | ||
name: Forge docs | ||
name: Autogenerated documentation | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
forge-doc: | ||
name: Generation | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
ssh-key: ${{ secrets.MACHINE_USER_PRIVATE_KEY }} | ||
|
||
- name: Install Foundry | ||
uses: onbjerg/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
|
||
- name: Generate docs | ||
run: forge doc --build | ||
permissions: | ||
id-token: write # This is required for requesting the JWT | ||
contents: read # This is required for actions/checkout | ||
|
||
- name: Upload docs | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: docs-foundry | ||
path: docs/book/ | ||
|
||
deploy: | ||
needs: forge-doc | ||
|
||
name: Deployment | ||
jobs: | ||
forge-docs: | ||
runs-on: ubuntu-latest | ||
|
||
environment: | ||
name: docs | ||
url: https://developers-aavev3.morpho.xyz | ||
|
||
steps: | ||
- name: Download docs | ||
uses: actions/download-artifact@v3 | ||
- uses: actions/checkout@v3 | ||
with: | ||
name: docs-foundry | ||
path: docs/ | ||
submodules: recursive | ||
|
||
- name: Setup AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v2 | ||
- name: Generate & upload forge docs | ||
uses: morpho-labs/[email protected] | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-s3-bucket: ${{ secrets.AWS_S3_BUCKET }} | ||
aws-cloudfront-distribution-id: ${{ secrets.AWS_CLOUDFRONT_DISTRIBUTION_ID }} | ||
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} | ||
role-session-name: ${{ vars.AWS_SESSION_NAME }} | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
||
- name: Upload docs to S3 | ||
run: aws s3 sync ./docs s3://$BUCKET --delete --acl public-read | ||
env: | ||
BUCKET: ${{ secrets.AWS_S3_BUCKET }} | ||
|
||
- name: Invalidate CloudFront cache | ||
run: aws cloudfront create-invalidation --distribution-id $DISTRIBUTION --paths "/*" | ||
env: | ||
DISTRIBUTION: ${{ secrets.AWS_CLOUDFRONT_DISTRIBUTION_ID }} | ||
s3-acl: private |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,9 +54,9 @@ You can also send an email to [[email protected]](mailto:[email protected]) | |
|
||
### Morpho-Aave-V3 (Ethereum) | ||
|
||
- Morpho Proxy: | ||
- Morpho Implementation: | ||
- PositionsManager: | ||
- Morpho Proxy: [0x33333aea097c193e66081e930c33020272b33333](https://etherscan.io/address/0x33333aea097c193e66081e930c33020272b33333) | ||
- Morpho Implementation: [0xcb5309bdda3463ece2d020c9d0564a95c5a90b53](https://etherscan.io/address/0xcb5309bdda3463ece2d020c9d0564a95c5a90b53) | ||
- PositionsManager: [0x4592e45e0c5DbEe94a135720cCfF2e4353dAc6De](https://etherscan.io/address/0x4592e45e0c5DbEe94a135720cCfF2e4353dAc6De) | ||
|
||
### Common (Ethereum) | ||
|
||
|
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
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
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
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
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
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
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
Oops, something went wrong.