edits and some re-org #33
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 to AWS Amplify | |
on: | |
# Runs on pushes targeting the default branch | |
push: | |
branches: ["wiremock-amplify"] | |
# 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/[email protected] | |
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: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install and configure Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: 1.5.1 | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Build the docs site | |
run: mkdocs build | |
- name: Deploy to Amplify | |
run: | | |
bash -x ./deploy-amplify.sh |