mirror of
https://github.com/inventree/inventree-website.git
synced 2025-04-28 05:26:44 +00:00
29 lines
603 B
YAML
29 lines
603 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'
|
|
jekyll_src: 'home'
|
|
pre_build_commands: |
|
|
cd home
|
|
apk add --update npm
|
|
npm install
|