Skip to content

Commit

Permalink
Update packages & workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
yell0wsuit committed Mar 4, 2025
1 parent 230c5e3 commit d6c7aac
Show file tree
Hide file tree
Showing 5 changed files with 3,201 additions and 1,672 deletions.
51 changes: 16 additions & 35 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,33 @@ on:
branches:
- main

# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

jobs:
build:
name: Build Docusaurus
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@main
with:
fetch-depth: 0

- uses: actions/setup-node@v4
- uses: actions/setup-node@main
with:
node-version: "21"

- name: Cache Node Modules
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
node-version: 22
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Cache Docusaurus Build
uses: actions/cache@v4
with:
path: .docusaurus
key: ${{ runner.os }}-docusaurus-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx', '**/*.md') }}
restore-keys: |
${{ runner.os }}-docusaurus-
- name: Build website
run: npm run build

Expand All @@ -45,20 +40,6 @@ jobs:
with:
path: build

deploy:
name: Deploy to GitHub Pages
needs: build

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
6 changes: 3 additions & 3 deletions .github/workflows/offline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@main

- name: Set up Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@main
with:
node-version: "21"
node-version: 22

- name: Set environment variable for hash router
run: echo "USE_HASH_ROUTER=true" >> $GITHUB_ENV
Expand Down
3 changes: 0 additions & 3 deletions babel.config.js

This file was deleted.

Loading

0 comments on commit d6c7aac

Please sign in to comment.