Skip to content

Commit

Permalink
Update to be fully static
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhincore committed Sep 19, 2024
1 parent cafb748 commit caba68c
Show file tree
Hide file tree
Showing 26 changed files with 653 additions and 962 deletions.
6 changes: 1 addition & 5 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,4 @@ LIZZY_API_TOKEN=""

DISCORD_SERVER_ID="717692382849663036"

PUBLIC_NEXUS_PROFILE_URL="https://next.nexusmods.com/profile"
NEXUS_GAME_IDS="3333"

# Not required
GITHUB_TOKEN=""
ORIGIN="https://redmodding.org"
2 changes: 0 additions & 2 deletions .env.development

This file was deleted.

70 changes: 70 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

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

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build_site:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8

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

- name: Install dependencies
run: pnpm install

- name: build
env:
BASE_PATH: "/${{ github.event.repository.name }}"
run: pnpm build
- name: Upload Artifacts
uses: actions/upload-pages-artifact@v3
with:
# this should match the `pages` option in your adapter-static options
path: "build/"

deploy:
needs: build_site
runs-on: ubuntu-latest

permissions:
pages: write
id-token: write

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

steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4
1 change: 0 additions & 1 deletion content/projects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ sounddb:

mlsetupbuilder:
name: MLsetupBuilder
author: neurolinked
description: Cyberpunk 2077 modding tool to build json version of .mlsetup files
githubs: Neurolinked/MlsetupBuilder
image: /projects/MlsbLogo.gif
Expand Down
20 changes: 13 additions & 7 deletions content/teams.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,35 +7,41 @@ leaders:
mods:
label: Moderator Team
description: Protectors of peace.
discordRole: [Moderator, Moderator+, Moderator++]
discordRole: "717719048514699264"
icon: /cat_mod.webp

redcore:
label: REDCore Team
description: Uhm... they make the core red?
discordRole: Team-REDCore
discordRole: "811909247125159987"
color: "#ff0000"

cet:
label: CET Team
description: The unresolved hash gang
discordRole: Team-CET
discordRole: "811690894221639691"
color: "#005bf9"

wkit:
label: WolvenKit Team
description: Developers of THE modding tool for Cyberpunk 2077.
discordRole: Team-WKit
discordRole: "803628105087713290"
color: "#ff4c6f"

website:
label: Website Team
description: Haha
discordRole: Team-Website
discordRole: "803647729905172521"
color: "#7119f8"

redkid:
label: Redkids
description: People who work on modding tools
discordRole: "905518587777806366"
color: "#ed453e"

wiki:
label: Wiki Team
label: Wiki Contributors
description: Helpers of our custom LLM AI Mana.
discordRole: Team-Wiki
discordRole: "790814286519468072"
color: "#00d7fd"
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@
"@fortawesome/free-brands-svg-icons": "^6.6.0",
"@fortawesome/free-solid-svg-icons": "^6.6.0",
"@fortawesome/svelte-fontawesome": "^0.2.2",
"@sveltejs/adapter-vercel": "^5.4.3",
"@sveltejs/kit": "^2.5.27",
"@sveltejs/adapter-static": "^3.0.5",
"@sveltejs/kit": "^2.5.28",
"@sveltejs/vite-plugin-svelte": "^3.1.2",
"@typescript-eslint/eslint-plugin": "^8.6.0",
"@typescript-eslint/parser": "^8.6.0",
"@vercel/analytics": "^1.3.1",
"autoprefixer": "^10.4.20",
"cssnano": "^7.0.6",
"devalue": "^5.0.0",
Expand All @@ -36,13 +35,16 @@
"prettier": "^3.3.3",
"prettier-plugin-svelte": "^3.2.6",
"prettier-plugin-tailwindcss": "0.6.6",
"sharp": "^0.33.5",
"simplex-noise": "^4.0.3",
"svelte": "^4.2.19",
"svelte-check": "^4.0.2",
"svgo": "^3.3.2",
"tailwind-merge": "^2.5.2",
"tailwindcss": "^3.4.11",
"tailwindcss": "^3.4.12",
"typescript": "^5.6.2",
"vite": "^5.4.5",
"vite": "^5.4.6",
"vite-plugin-image-optimizer": "^1.1.8",
"yaml": "^2.5.1"
},
"pnpm": {
Expand Down
Loading

0 comments on commit caba68c

Please sign in to comment.