2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-05-08 02:08:52 +00:00

31 lines
637 B
YAML

name: Build pages and publish
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
vendor/bundle
~/.npm
node_modules
*/*/node_modules
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
restore-keys: |
${{ runner.os }}-gems-
- uses: helaili/jekyll-action@2.2.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
target_branch: 'gh-pages'
pre_build_commands: |
apk add --update npm
npm install