Skip to content

Commit

Permalink
Merge pull request #1660 from morpho-org/refacto/clean-autogen-docs
Browse files Browse the repository at this point in the history
refactor(ci): use of OpenID Connect
  • Loading branch information
julien-devatom committed May 10, 2023
2 parents ffdb517 + 6599d41 commit 0ad0641
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: docs
url: https://developers.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 0ad0641

Please sign in to comment.