-
Notifications
You must be signed in to change notification settings - Fork 11
36 lines (32 loc) · 1.02 KB
/
documentation.yml
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
name: Publish docs
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'documentation.Dockerfile'
- 'documentation.dockerignore'
- 'mkdocs.yml'
- 'docs/**'
- 'src/test/resources/e2e/**'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: |
docker build --file documentation.Dockerfile --tag liquibase/neo4j-docs:latest .
docker run --pull never --volume "$(pwd)":/usr/src/app liquibase/neo4j-docs:latest build
- name: Sync to Static
uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks
env:
AWS_S3_BUCKET: ${{ secrets.NEO4J_DOCS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.NEO4J_DOCS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.NEO4J_DOCS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.NEO4J_DOCS_S3_REGION }}
SOURCE_DIR: 'site/'
DEST_DIR: 'labs/liquibase/docs'