-
Notifications
You must be signed in to change notification settings - Fork 53
53 lines (42 loc) · 1.24 KB
/
deploy-to-amplify.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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