Skip to content

Commit

Permalink
Merge pull request #252 from morpho-org/feat/use-open-id-for-autodoc
Browse files Browse the repository at this point in the history
refactor(ci): use of OpenID Connect
  • Loading branch information
julien-devatom authored May 10, 2023
2 parents 648bc6f + 921f2e1 commit 2a4b5c7
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/ci-docs-autogen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ on:
branches:
- main

permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout

jobs:
autogen-docs:
forge-docs:
runs-on: ubuntu-latest

environment:
name: Documentation
url: https://developers-vaults.morpho.xyz
Expand All @@ -18,11 +21,12 @@ jobs:
with:
submodules: recursive

- name: Generate and upload docs
uses: morpho-labs/foundry-docs-aws@v1
- name: Generate & upload forge docs
uses: morpho-labs/foundry-docs-aws@v1.1.1
with:
aws-s3-bucket: ${{ secrets.AWS_S3_BUCKET }}
aws-cloudfront-distribution-id: ${{ secrets.AWS_CLOUDFRONT_DISTRIBUTION_ID }}
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
role-session-name: ${{ vars.AWS_SESSION_NAME }}
aws-region: ${{ secrets.AWS_REGION }}
s3-acl: private

0 comments on commit 2a4b5c7

Please sign in to comment.