Skip to content

Commit

Permalink
Update CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
impulsh committed Nov 19, 2020
1 parent 4822ceb commit 21e1797
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/plugin-center.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ jobs:
ref: master
path: scraper
token: ${{ secrets.PLUGIN_CENTER_TOKEN }}

- name: Build Lua
uses: leafo/gh-actions-lua@v5

uses: leafo/[email protected]
with:
luaVersion: "5.2"

- name: Build Luarocks
uses: leafo/gh-actions-luarocks@v2
uses: leafo/gh-actions-luarocks@v4.0.0

- name: Build Hugo
uses: peaceiris/actions-hugo@v2
Expand All @@ -48,16 +50,16 @@ jobs:
- 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

0 comments on commit 21e1797

Please sign in to comment.