Bump ScottBrenner/cfn-lint-action from 2.7.1 to 2.8.0 in the dependen… #527
This file contains hidden or 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: Build and deploy the Vapor documentation | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| id-token: write | |
| jobs: | |
| deploy: | |
| name: Build and deploy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v7 | |
| - name: Build the website | |
| run: docker run --rm -v "$PWD":/docs -w /docs swift:6.3 swift run VaporDocs | |
| - name: Configure AWS credentials | |
| uses: aws-actions/configure-aws-credentials@e6de054238d6b7531b4efff3b6587d9aade6a06c # v6.2.3 | |
| with: | |
| role-to-assume: ${{ vars.OIDC_ROLE_ARN }} | |
| aws-region: ${{ vars.OIDC_ROLE_REGION }} | |
| - name: Deploy CloudFormation stack | |
| uses: aws-actions/aws-cloudformation-github-deploy@81e3b03d2266bcb76c4bcc37a7d71d9cb67838bb # v2.2.0 | |
| with: | |
| name: vapor-docs-stack | |
| template: stack.yml | |
| parameter-overrides: >- | |
| DomainName=docs.vapor.codes, | |
| S3BucketName=${{ secrets.DOCS_S3_BUCKET_NAME }}, | |
| AcmCertificateArn=${{ secrets.CERTIFICATE_ARN }} | |
| - name: Upload data to S3 | |
| run: | | |
| aws s3 sync ./site 's3://${{ secrets.DOCS_S3_BUCKET_NAME }}' --no-progress --acl public-read | |
| - name: Invalidate CloudFront | |
| run: | | |
| aws cloudfront create-invalidation --distribution-id '${{ secrets.DOCS_DISTRIBUTION_ID }}' --paths '/*' |