Add spawnmenu & context menu permissions plugin (#111) #100
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 Center | |
on: | |
push: | |
branches: | |
- master | |
- plugin-center | |
jobs: | |
build-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Pull plugins | |
run: | | |
git clone --depth=10000 https://github.com/NebulousCloud/helix-plugins.git plugins | |
- name: Pull plugin center | |
uses: actions/checkout@v2-beta | |
with: | |
repository: NebulousCloud/helix-plugins | |
ref: plugin-center | |
path: plugin-center | |
- name: Pull plugin scraper | |
uses: actions/checkout@v2-beta | |
with: | |
repository: impulsh/helix-plugin-scraper | |
ref: master | |
path: scraper | |
token: ${{ secrets.PLUGIN_CENTER_TOKEN }} | |
- name: Build Lua | |
uses: leafo/gh-actions-lua@v8.0.0 | |
with: | |
luaVersion: "5.2" | |
- name: Build Luarocks | |
uses: leafo/gh-actions-luarocks@v4.0.0 | |
- name: Build Hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: "0.61.0" | |
extended: true | |
- name: Build plugin scraper | |
working-directory: scraper | |
run: luarocks make | |
- name: Process plugins | |
working-directory: scraper | |
run: lua main.lua ../plugins --batch --output ../plugin-center/content/plugins | |
- name: Build plugin center | |
working-directory: plugin-center | |
run: hugo --minify | |
- name: Deploy plugin center | |
if: success() | |
uses: peaceiris/actions-gh-pages@v2 | |
env: | |
ACTIONS_DEPLOY_KEY: ${{ secrets.PLUGIN_CENTER_DEPLOY }} | |
PUBLISH_BRANCH: gh-pages | |
PUBLISH_DIR: ./plugin-center/public | |