aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-04-14 00:37:28 -0700
committerPinapelz <yukais@pinapelz.com>2025-04-14 00:39:23 -0700
commit35ba4ecbb6df86fdff429742e1706ff42b3eb419 (patch)
tree5047dce3aafcfc864597440f7a48e3c746426972
parent28fc7a075cb5da7aa066a2aad5559c5426248dfc (diff)
chore: add README and CI/CD
-rw-r--r--.github/workflows/deploy.yml58
-rw-r--r--README.md13
-rw-r--r--site/README.md54
-rw-r--r--site/src/pages/Homepage.tsx2
4 files changed, 72 insertions, 55 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
new file mode 100644
index 0000000..bd990f5
--- /dev/null
+++ b/.github/workflows/deploy.yml
@@ -0,0 +1,58 @@
+# 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: ['main']
+
+ # Allows you to run this workflow manually from the Actions tab
+ workflow_dispatch:
+
+# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
+permissions:
+ contents: read
+ pages: write
+ id-token: write
+
+# Allow one concurrent deployment
+concurrency:
+ group: 'pages'
+ cancel-in-progress: true
+
+jobs:
+ # Single deploy job since we're just deploying
+ deploy:
+ environment:
+ name: github-pages
+ url: ${{ steps.deployment.outputs.page_url }}
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Set up Node
+ uses: actions/setup-node@v4
+ with:
+ node-version: 20
+ cache: 'npm'
+
+ - name: Install dependencies
+ run: npm ci
+ working-directory: site
+
+ - name: Build
+ run: npm run build
+ working-directory: site
+
+ - name: Setup Pages
+ uses: actions/configure-pages@v4
+
+ - name: Upload artifact
+ uses: actions/upload-pages-artifact@v3
+ with:
+ path: './site/dist'
+
+ - name: Deploy to GitHub Pages
+ id: deployment
+ uses: actions/deploy-pages@v4
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..359e566
--- /dev/null
+++ b/README.md
@@ -0,0 +1,13 @@
+# 573 UPDATES
+A scraper and aggregator of information/news for various arcade games. Despite the name, there are plans to add more than just Konami games
+
+Frontend: https://arcade.moekyun.me/
+
+API: `https://arcade-news.pinapelz.com/<game_id>.json`
+
+Setting `game_id` to `news` provides an aggregate feed of all news from games that are within a 14 day range of scraping
+
+Currently Supported:
+- beatmania IIDX PINKY CRUSH (`iidx_news`)
+- SOUND VOLTEX EXCEED GEAR (`sdvx_news`)
+- CHUNITHM (JPN) (`chunithm_jpn_news`)
diff --git a/site/README.md b/site/README.md
deleted file mode 100644
index 40ede56..0000000
--- a/site/README.md
+++ /dev/null
@@ -1,54 +0,0 @@
-# React + TypeScript + Vite
-
-This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
-
-Currently, two official plugins are available:
-
-- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
-- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
-
-## Expanding the ESLint configuration
-
-If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
-
-```js
-export default tseslint.config({
- extends: [
- // Remove ...tseslint.configs.recommended and replace with this
- ...tseslint.configs.recommendedTypeChecked,
- // Alternatively, use this for stricter rules
- ...tseslint.configs.strictTypeChecked,
- // Optionally, add this for stylistic rules
- ...tseslint.configs.stylisticTypeChecked,
- ],
- languageOptions: {
- // other options...
- parserOptions: {
- project: ['./tsconfig.node.json', './tsconfig.app.json'],
- tsconfigRootDir: import.meta.dirname,
- },
- },
-})
-```
-
-You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
-
-```js
-// eslint.config.js
-import reactX from 'eslint-plugin-react-x'
-import reactDom from 'eslint-plugin-react-dom'
-
-export default tseslint.config({
- plugins: {
- // Add the react-x and react-dom plugins
- 'react-x': reactX,
- 'react-dom': reactDom,
- },
- rules: {
- // other rules...
- // Enable its recommended typescript rules
- ...reactX.configs['recommended-typescript'].rules,
- ...reactDom.configs.recommended.rules,
- },
-})
-```
diff --git a/site/src/pages/Homepage.tsx b/site/src/pages/Homepage.tsx
index 0472c39..6f53096 100644
--- a/site/src/pages/Homepage.tsx
+++ b/site/src/pages/Homepage.tsx
@@ -34,7 +34,7 @@ export default function Home() {
}
try {
- const response = await fetch(`${import.meta.env.VITE_API_DOMAIN}/${jsonFile}`);
+ const response = await fetch("https://arcade-news.pinapelz.com/"+`${jsonFile}`);
if (!response.ok) {
throw new Error(`Failed to fetch news: ${response.statusText}`);
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage