2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-05-15 13:33:10 +00:00

add action

This commit is contained in:
Matthias Mair 2021-11-08 23:11:08 +01:00
parent 8a98549ccc
commit 5828964d84

24
.github/workflows/gh-pages.yml vendored Normal file
View File

@ -0,0 +1,24 @@
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'