Skip to content

Commit

Permalink
Update docs to publish to calm.finos.org via s3 and configure to use …
Browse files Browse the repository at this point in the history
…Git LFS for .mov files. (#493)
  • Loading branch information
rocketstack-matt authored Oct 18, 2024
1 parent 193b8e6 commit 0e5cee4
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.mov filter=lfs diff=lfs merge=lfs -text
38 changes: 38 additions & 0 deletions .github/workflows/s3-docs-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Sync Docs to S3

on:
workflow_dispatch: {}
push:
branches: [ "main" ]
paths: [ "docs/**" ]

jobs:
sync-to-s3:
runs-on: ubuntu-latest
defaults:
run:
working-directory: docs

steps:
- name: Checkout repository
uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
cache-dependency-path: ./docs/package-lock.json
- name: Install dependencies
run: npm ci
- name: Build website
run: npm run build

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_S3_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_S3_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Sync docs to S3
run: |
aws s3 sync docs/build s3://calm.finos.org/ --delete --include "*" --exclude "draft/*" --exclude "samples/*"
4 changes: 2 additions & 2 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ const config = {
favicon: 'img/favicon.ico',

// Set the production url of your site here
url: 'https://rocketstack-matt.github.io/',
url: 'https://calm.finos.org/',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/architecture-as-code/',
baseUrl: '/',

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
Expand Down
3 changes: 3 additions & 0 deletions docs/static/video/aasc-wg-2024-09-24.mov
Git LFS file not shown

0 comments on commit 0e5cee4

Please sign in to comment.