generated from finos-labs/project-blueprint
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update docs to publish to calm.finos.org via s3 and configure to use …
…Git LFS for .mov files. (#493)
- Loading branch information
1 parent
193b8e6
commit 0e5cee4
Showing
4 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.mov filter=lfs diff=lfs merge=lfs -text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Git LFS file not shown