-
-
Notifications
You must be signed in to change notification settings - Fork 71
50 lines (47 loc) · 1.38 KB
/
updater.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Plugin List Updater
on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- 'Plugins/**'
jobs:
build:
if: github.repository == 'sepluginloader/PluginHub'
runs-on: ubuntu-latest
steps:
- name: Checkout Plugin Hub
uses: actions/checkout@v4
with:
path: PluginHub
fetch-depth: 0
- name: Checkout Website
uses: actions/checkout@v4
with:
token: ${{ secrets.MANAGE_WEBSITE_TOKEN }}
repository: sepluginloader/sepluginloader.github.io
path: sepluginloader.github.io
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Generate Json
run: 'python PluginHub/Json/tojson.py PluginHub/Plugins/ sepluginloader.github.io/plugins.json'
- name: Create Archive
uses: thedoctor0/zip-release@master
with:
filename: 'plugins.zip'
directory: 'PluginHub/Plugins'
- name: Hash Archive
run: 'sha1sum PluginHub/Plugins/plugins.zip > PluginHub/plugins.sha1'
- name: Push Archive to PluginHub
uses: EndBug/add-and-commit@v9
with:
message: 'Plugin list updated'
add: 'plugins.sha1'
cwd: './PluginHub/'
- name: Push Archive to Website
uses: EndBug/add-and-commit@v9
with:
message: 'Plugin list updated'
add: 'plugins.json'
cwd: './sepluginloader.github.io/'