forked from f5devcentral/f5-agility-labs-adc
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (26 loc) · 939 Bytes
/
build-the-docs.yml
File metadata and controls
31 lines (26 loc) · 939 Bytes
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
name: Build the Docs
on: push
jobs:
deploy:
runs-on: ubuntu-latest
env:
S3_DIR: adc
steps:
- uses: actions/checkout@v2
- run: ./containthedocs-build.sh
- 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 }}
aws-region: us-east-1
- name: Copy files to s3 (Staging Clouddocs)
# Develop branch only
if: github.ref == 'refs/heads/develop'
run: |
aws s3 sync --delete $PWD/docs/_build/html/ s3://clouddocs.f5networks.net/training/community/$S3_DIR/html/
- name: Copy files to s3 (Production Clouddocs)
# Master branch only
if: github.ref == 'refs/heads/master'
run: |
aws s3 sync --delete $PWD/docs/_build/html/ s3://clouddocs.f5.com/training/community/$S3_DIR/html/