mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-06 08:43:40 +00:00
40 lines
842 B
YAML
40 lines
842 B
YAML
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
update_hugo_dependencies:
|
|
name: Update Hugo Dependencies
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "18"
|
|
|
|
- name: Install Hugo
|
|
uses: peaceiris/actions-hugo@v2
|
|
with:
|
|
hugo-version: "0.111.3"
|
|
extended: true
|
|
|
|
- name: Write composite package.json
|
|
run: hugo mod npm pack
|
|
|
|
- name: Install npm Packages
|
|
run: npm install
|
|
|
|
- name: Display Changes
|
|
run: git status
|
|
|
|
- name: Commit Changes
|
|
uses: stefanzweifel/git-auto-commit-action@v5
|
|
with:
|
|
commit_message: Update Hugo Dependencies
|