Skip to content

Plugin list updated

Plugin list updated #1

Workflow file for this run

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/'