From 2df0e1a5e3336afa066b39b47c5a60c697fe0d9e Mon Sep 17 00:00:00 2001
From: Alexander Bilz <mail@alexbilz.com>
Date: Sat, 19 Mar 2022 14:43:23 +0000
Subject: [PATCH] ci: update resource on push to master
---
.github/workflows/update-resources.yml | 40 ++++++++++++++++++++++++++++++++++++++++
1 files changed, 40 insertions(+), 0 deletions(-)
diff --git a/.github/workflows/update-resources.yml b/.github/workflows/update-resources.yml
new file mode 100644
index 0000000..d9ff124
--- /dev/null
+++ b/.github/workflows/update-resources.yml
@@ -0,0 +1,40 @@
+name: update resources
+
+on:
+ push:
+ branches:
+ - master
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - name: checkout
+ uses: actions/checkout@v3
+ - name: setup hugo
+ uses: peaceiris/actions-hugo@v2
+ with:
+ extended: true
+ hugo-version: 0.91.2
+ - name: setup node
+ uses: actions/setup-node@v3
+ with:
+ node-version: 14
+ - name: install
+ run: |
+ npm ci
+ npm run prepare
+ - name: cache dependencies
+ uses: actions/cache@v2
+ with:
+ path: ~/.npm
+ key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
+ restore-keys: |
+ ${{ runner.os }}-node-
+ - name: build
+ run: npm run build
+ - name: commit resources
+ uses: stefanzweifel/git-auto-commit-action@v4
+ with:
+ commit_message: 'chore: build resources'
+ file_pattern: resources/** exampleSite/resources/**
--
Gitblit v1.10.0