fix deployment

This commit is contained in:
kmmiio99o 2025-09-29 18:12:30 +02:00
parent a191849cf0
commit 0ebff831ec
5 changed files with 27 additions and 21 deletions

View file

@ -2,24 +2,21 @@ name: Build and deploy
on: on:
push: push:
branches: [main, master] branches: [master]
jobs: jobs:
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
contents: read contents: write
pages: write
id-token: write
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v3
- name: Prepare environment - name: Prepare environment
uses: actions/setup-node@v4 uses: actions/setup-node@v3
with: with:
node-version: 22 node-version: "18"
- run: npm install --global pnpm - run: npm install --global pnpm
@ -29,6 +26,10 @@ jobs:
- name: Build plugin(s) - name: Build plugin(s)
run: node ./build.mjs run: node ./build.mjs
# Foolproof feature:
# - Copies over README so that the root of the deployed website shows it
# - Changes 404 page to README so that you don't get lost while clicking links
# If you remove this step then you should probably remove the enable_jekyll option in the next one
- name: Copy additional files - name: Copy additional files
run: | run: |
cp README.md dist/README.md cp README.md dist/README.md
@ -36,14 +37,13 @@ jobs:
printf -- "> **Note:** You accessed a link that returned a 404, probably by clicking one of the plugin links. You're supposed to copy the link address and add it into Vendetta.\n\n" >> dist/404.md printf -- "> **Note:** You accessed a link that returned a 404, probably by clicking one of the plugin links. You're supposed to copy the link address and add it into Vendetta.\n\n" >> dist/404.md
cat README.md >> dist/404.md cat README.md >> dist/404.md
- name: Setup Pages # Documentation: https://github.com/peaceiris/actions-gh-pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./dist
- name: Deploy to GitHub Pages - name: Deploy to GitHub Pages
id: deployment uses: peaceiris/actions-gh-pages@v3
uses: actions/deploy-pages@v4 with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
# Makes it so the md files in the previous step get processed by GitHub Pages
enable_jekyll: true
# This creates the CNAME file required to host GitHub Pages on a custom domain
# cname: example.com

View file

@ -9,7 +9,6 @@
"devDependencies": { "devDependencies": {
"@rollup/plugin-commonjs": "^24.1.0", "@rollup/plugin-commonjs": "^24.1.0",
"@rollup/plugin-node-resolve": "^15.0.2", "@rollup/plugin-node-resolve": "^15.0.2",
"@swc/core": "^1.3.51",
"@types/react": "^18.0.37", "@types/react": "^18.0.37",
"@types/react-native": "^0.70.13", "@types/react-native": "^0.70.13",
"@typescript-eslint/eslint-plugin": "^5.59.0", "@typescript-eslint/eslint-plugin": "^5.59.0",

View file

@ -9,6 +9,7 @@ import { pluginListCommand, themeListCommand } from "./src/commands/lists";
import { petPetCommand } from "./src/commands/petpet"; import { petPetCommand } from "./src/commands/petpet";
import { konoSelfCommand, konoSendCommand } from "./src/commands/konochan"; import { konoSelfCommand, konoSendCommand } from "./src/commands/konochan";
import { firstMessageCommand } from "./src/commands/firstmessage"; import { firstMessageCommand } from "./src/commands/firstmessage";
import { sysinfoCommand } from "./src/commands/sysinfo";
import settings from "./settings"; import settings from "./settings";
// Initialize storage with default values // Initialize storage with default values
@ -37,6 +38,7 @@ if (!storage.enabledCommands) {
konoself: true, konoself: true,
konosend: true, konosend: true,
firstmessage: true, firstmessage: true,
sysinfo: true, // Add sysinfo to enabled commands
}; };
} }
@ -51,6 +53,7 @@ const commandMap = {
konoself: konoSelfCommand, konoself: konoSelfCommand,
konosend: konoSendCommand, konosend: konoSendCommand,
firstmessage: firstMessageCommand, firstmessage: firstMessageCommand,
sysinfo: sysinfoCommand, // Add sysinfo to command map
}; };
// Store registered commands for cleanup // Store registered commands for cleanup

View file

@ -217,7 +217,7 @@ export default function Settings() {
{/* About */} {/* About */}
<TableRowGroup title="About"> <TableRowGroup title="About">
<TableRow <TableRow
label="All-In-One Commands" label="Commands"
subLabel="A collection of useful commands" subLabel="A collection of useful commands"
/> />
</TableRowGroup> </TableRowGroup>

View file

@ -1,2 +1,6 @@
packages: packages:
- plugins/* - plugins/*
ignoredBuiltDependencies:
- '@swc/core'
- esbuild