2
0
mirror of https://github.com/inventree/inventree-website.git synced 2025-05-10 19:28:49 +00:00
Matthias Mair 21bc18fe43 Revert "remove npm from cache"
This reverts commit 0e6a0518ddb21e811eb6fc8ae61ceb5bd5b36f8d.
2021-11-09 00:04:38 +01: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