-
Notifications
You must be signed in to change notification settings - Fork 6
53 lines (46 loc) · 1.7 KB
/
deploy.yml
File metadata and controls
53 lines (46 loc) · 1.7 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Deploy Docusaurus to GitHub Pages
on:
push:
branches:
- main
schedule:
- cron: '0 0 * * *'
workflow_dispatch: # Enable manual trigger
jobs:
build:
runs-on: ubuntu-latest
environment: github-pages
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: '22'
- name: Install dependencies
run: npm install
- name: Fetch Latest Documentation
run: npm run import
- name: Build Docusaurus site & configure AWS Cognito Env Vars and Secrets
run: npm run build
env:
ENV: ${{ vars.ENV }}
REGION: ${{ vars.REGION }}
USER_POOL_ID: ${{ secrets.USER_POOL_ID }}
USER_POOL_WEB_CLIENT_ID: ${{ secrets.USER_POOL_WEB_CLIENT_ID }}
OAUTH_DOMAIN: ${{ secrets.OAUTH_DOMAIN }}
OAUTH_REDIRECT_SIGN_OUT: ${{ vars.OAUTH_REDIRECT_SIGN_OUT }}
OAUTH_REDIRECT_SIGN_RESPONSE_TYPE: ${{ vars.OAUTH_REDIRECT_SIGN_RESPONSE_TYPE }}
AUTHORITY: ${{ secrets.AUTHORITY }}
CLIENT_ID: ${{ secrets.CLIENT_ID }}
REDIRECT_URI: ${{ vars.REDIRECT_URI }}
SCOPE: ${{ vars.SCOPE }}
MIGRATION_API_KEY: ${{ secrets.MIGRATION_API_KEY }}
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]users.noreply.github.com'
commit_message: ${{ github.event.head_commit.message }}