Merge pull request #155 from botpress/gc-ai-task-failure #141
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
name: Deploy Documentation Staging | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: {} | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
documentation: | |
runs-on: ubuntu-latest | |
environment: staging | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./actions/build-documentation | |
with: | |
unleash-url: ${{ vars.UNLEASH_URL }} | |
unleash-app-name: ${{ vars.UNLEASH_APP_NAME }} | |
unleash-client-key: ${{ vars.UNLEASH_CLIENT_KEY }} | |
- uses: botpress/gh-actions/deploy/s3@v2 | |
with: | |
aws-role: ${{ secrets.AWS_DOCUMENTATION_UPLOAD_ROLE }} | |
destination: s3://${{ secrets.AWS_DOCUMENTATION_BUCKET_NAME }}/docs | |
cloudfront-distribution-id: ${{ secrets.AWS_DOCUMENTATION_CLOUDFRONT_DISTRIBUTION_ID }} | |
cloudfront-invalidation-prefix: '/docs/*' | |
source: ./out |