Skip to content

Commit 644a32b

Browse files
committed
feat: add files back,.
1 parent a03689b commit 644a32b

36 files changed

+8807
-20
lines changed

.github/workflows/deploy.yml

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,27 @@
11
name: Deploy to GitHub pages
2+
23
on:
3-
push:
4-
branches: [main]
5-
jobs:
6-
build:
7-
runs-on: ubuntu-latest
4+
workflow_dispatch:
5+
# schedule:
6+
# - cron: "0 6 * * *"
7+
push:
8+
paths:
9+
- "public/index.html"
810

9-
steps:
10-
- uses: actions/checkout@v2
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
1114

12-
- name: Force push to destination branch
13-
uses: ad-m/github-push-action@v0.5.0
14-
with:
15-
github_token: ${{ secrets.GITHUB_TOKEN }}
16-
branch: gh-pages
17-
force: true
18-
directory: ./public
15+
steps:
16+
- uses: actions/checkout@v4
17+
- run: |
18+
git init
19+
git add -A
20+
git config --local user.email "github-actions[bot]"
21+
git config --local user.name "41898282+github-actions[bot]@users.noreply.github.com"
22+
git commit -m 'deploy'
23+
working-directory: ./public
24+
- uses: JamesIves/github-pages-deploy-action@v4.3.3
25+
with:
26+
branch: gh-pages
27+
folder: public
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Update and Group JSON API
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
force:
7+
description: "Force download (ignore existing files)"
8+
required: false
9+
default: false
10+
type: boolean
11+
schedule:
12+
- cron: "0 * * * *"
13+
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: false
17+
18+
jobs:
19+
update-and-group:
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
- uses: actions/setup-node@v4
25+
with:
26+
node-version: 24
27+
28+
- name: Install dependencies
29+
run: npm install
30+
31+
# Update step
32+
- name: Update data
33+
id: update-data
34+
run: npm run ${{ github.event.inputs.force == 'true' && 'update-data-force' || 'update-data' }}
35+
36+
- name: Read manifestIdUpdate.txt
37+
id: manifestIdUpdate
38+
uses: juliangruber/read-file-action@v1
39+
with:
40+
path: ./manifestIdUpdate.txt
41+
42+
# Group step
43+
- name: Group data
44+
id: group-data
45+
run: npm run ${{ github.event.inputs.force == 'true' && 'group-data-force' || 'group-data' }}
46+
47+
- name: Read manifestIdGroup.txt
48+
id: manifestIdGroup
49+
uses: juliangruber/read-file-action@v1
50+
with:
51+
path: ./manifestIdGroup.txt
52+
53+
# Commit all changes
54+
- name: Commit & push changes
55+
uses: stefanzweifel/git-auto-commit-action@v4
56+
with:
57+
commit_message: "[bot::update-group] manifest ${{ steps.manifestIdUpdate.outputs.content }}"

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 ByMykel
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)