feat : update Q1 2024 and Q2 2024 #402
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
name: Deploy Docs | |
on: [push] | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "20.6.1" | |
- name: Enable Corepack to manage Yarn | |
run: corepack enable | |
- name: Install specified Yarn version | |
run: corepack prepare [email protected] --activate | |
- name: Activate specified Yarn version | |
run: yarn set version 4.0.2 | |
- name: Disable immutable installs | |
run: yarn config set enableImmutableInstalls false | |
- name: Install Node.js dependencies | |
run: yarn install | |
- name: Build | |
run: yarn build | |
- name: Deploy | |
uses: reggionick/s3-deploy@v3 | |
with: | |
folder: build | |
bucket: ${{ secrets.S3_BUCKET }} | |
bucket-region: ${{ secrets.S3_BUCKET_REGION }} | |
invalidation: / | |
delete-removed: true | |
no-cache: true | |
private: false |