Merge pull request #405 from dlehammer/dlehammer-patch-1 #128
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: Deploy to AWS Amplify | |
| on: | |
| # Runs on pushes targeting the default branch | |
| push: | |
| branches: ["main"] | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| id-token: write | |
| # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | |
| concurrency: | |
| group: "amplify" | |
| cancel-in-progress: true | |
| jobs: | |
| # Build job | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: aws-actions/configure-aws-credentials@v4.0.1 | |
| with: | |
| role-to-assume: arn:aws:iam::499333472133:role/GitHub-wiremock.org-Deploy | |
| aws-region: us-east-1 | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| submodules: "true" | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v3 | |
| with: | |
| version: 8 | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build the docs site | |
| run: pnpm build | |
| - name: Deploy to Amplify | |
| run: | | |
| bash -x ./deploy-amplify.sh | |
| - name: Update Amplify redirects | |
| run: | | |
| aws amplify update-app --app-id d1rkup1qsf4ckf --custom-rules "$(cat amplify-redirects.json)" |