Skip to content

Commit

Permalink
Upgrade Lunaria and add Action
Browse files Browse the repository at this point in the history
  • Loading branch information
yanthomasdev committed Apr 18, 2024
1 parent 4162424 commit 1969613
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 221 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/lunaria.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Lunaria

on:
# Trigger the workflow every time a pull request is opened or synchronized at the target `main` branch
pull_request_target:
types: [opened, synchronize]
branches: [main]

# Allow this job to clone the repository and comment on the pull request
permissions:
contents: read
pull-requests: write

jobs:
lunaria-overview:
name: Generate Lunaria Overview
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
# Necessary for Lunaria to work properly
# Makes the action clone the entire git history
fetch-depth: 0

- name: Setup PNPM
uses: pnpm/action-setup@v3

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- name: Install dependencies
run: pnpm install
shell: bash

- name: Generate Lunaria Overview
uses: yanthomasdev/lunaria-action
with:
token: ${{ secrets.FREDKBOT_GITHUB_TOKEN }}
working-directory: docs
3 changes: 2 additions & 1 deletion docs/lunaria.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@
"files": [
{
"location": "src/content/docs/**/*.{md,mdx}",
"pattern": "src/content/docs/@lang/@path"
"pattern": "src/content/docs/@lang/@path",
"type": "universal"
}
],
"dashboard": {
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"dependencies": {
"@astro-community/astro-embed-youtube": "^0.4.4",
"@astrojs/starlight": "workspace:*",
"@lunariajs/core": "^0.0.25",
"@lunariajs/core": "^0.0.32",
"@types/culori": "^2.0.0",
"astro": "^4.3.5",
"culori": "^3.2.0",
Expand Down
Loading

0 comments on commit 1969613

Please sign in to comment.