-
Notifications
You must be signed in to change notification settings - Fork 8
49 lines (41 loc) · 1.29 KB
/
publish_docs.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
name: "Publish Docs"
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
- "[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+"
- "[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+"
- "[0-9]+.[0-9]+.[0-9]+a[0-9]+"
- "[0-9]+.[0-9]+.[0-9]+b[0-9]+"
- "[0-9]+.[0-9]+.[0-9]+rc[0-9]+"
jobs:
publish:
name: "Publish docs to S3"
runs-on: "ubuntu-latest"
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_ID }}
aws-region: us-west-2
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: Gr1N/setup-poetry@v8
with:
poetry-version: 1.5.1
- name: Build docs
working-directory: ./jobbergate-docs
run: |
make docs
- name: Push to S3
working-directory: ./jobbergate-docs
run: |
VERSION=`poetry version -s`
aws s3 sync ./build s3://docs.omnivector.solutions/jobbergate/$VERSION
aws s3 sync ./build s3://docs.omnivector.solutions/jobbergate/latest