2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-05-12 04:02:58 +00:00
2021-11-08 23:25:01 +01:00

27 lines
558 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
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