This repository was archived by the owner on Jun 29, 2025. It is now read-only.
Merge pull request #380 from civicwar/add-SEDirectConnect #742
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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/' |