Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CI for docosaurus version of docs #15

Merged
merged 4 commits into from
Jan 31, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/branches.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: build website
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Install dependencies
run: npm install

- name: Build project
run: npm run build --throw-deprecation --trace-warnings
36 changes: 36 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: deploy website
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
environment: docs
permissions:
id-token: write
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Install dependencies
run: npm install

- name: Build project
run: npm run build

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v3
with:
role-to-assume: ${{ secrets.DOCS_AWS_IAM_ROLE }}
aws-region: ${{ secrets.DOCS_AWS_REGION }}

- name: Upload files to S3
run: |
aws s3 cp ./build s3://${{ secrets.DOCS_AWS_S3_BUCKET }} --recursive
8 changes: 8 additions & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# CODEOWNERS file

# workflow files are sensitive
.github/workflows/* @vaclav-ssvlabs

#
* @RaekwonIII @taylorferran @Alex-ssvlabs