mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-06 00:33:39 +00:00
Rename theme path
This commit is contained in:
43
themes/hugo-theme-gruvbox/.github/renovate.json
vendored
Normal file
43
themes/hugo-theme-gruvbox/.github/renovate.json
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": ["config:base"],
|
||||
"rebaseWhen": "behind-base-branch",
|
||||
"npm": {
|
||||
"fileMatch": ["(^|/)package\\.hugo\\.json$"],
|
||||
"rangeStrategy": "bump",
|
||||
"updateLockFiles": false,
|
||||
"ignoreTests": true,
|
||||
"ignorePaths": [
|
||||
"package.json",
|
||||
|
||||
"**/node_modules/**",
|
||||
"**/bower_components/**",
|
||||
"**/vendor/**",
|
||||
"**/examples/**",
|
||||
"**/__tests__/**",
|
||||
"**/test/**",
|
||||
"**/tests/**",
|
||||
"**/__fixtures__/**"
|
||||
]
|
||||
},
|
||||
"gomod": {
|
||||
"fileMatch": ["(^|/)go\\.mod$"],
|
||||
"rangeStrategy": "bump"
|
||||
},
|
||||
"packageRules": [
|
||||
{
|
||||
"matchManagers": ["gomod"],
|
||||
"matchDepTypes": ["indirect"],
|
||||
"enabled": true,
|
||||
"groupName": "Hugo Modules"
|
||||
},
|
||||
{
|
||||
"extends": "packages:linters",
|
||||
"groupName": "linters"
|
||||
},
|
||||
{
|
||||
"extends": "packages:postcss",
|
||||
"groupName": "postcss packages"
|
||||
}
|
||||
]
|
||||
}
|
84
themes/hugo-theme-gruvbox/.github/workflows/publish.yml
vendored
Normal file
84
themes/hugo-theme-gruvbox/.github/workflows/publish.yml
vendored
Normal file
@@ -0,0 +1,84 @@
|
||||
name: Publish Hugo Site
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
update_hugo_npm_dependencies:
|
||||
name: Update Hugo npm Dependencies
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
outputs:
|
||||
commit_hash: ${{ steps.commit_changes.outputs.commit_hash }}
|
||||
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
|
||||
id: commit_changes
|
||||
uses: stefanzweifel/git-auto-commit-action@v5
|
||||
with:
|
||||
commit_message: Update Hugo npm Dependencies
|
||||
|
||||
publish:
|
||||
name: Publish Hugo Site
|
||||
needs: update_hugo_npm_dependencies
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
deployments: write
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
|
||||
ref: ${{ needs.update_hugo_npm_dependencies.outputs.commit_hash }}
|
||||
|
||||
- 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: Install npm Packages
|
||||
run: npm ci
|
||||
|
||||
- name: Build Hugo
|
||||
run: hugo --minify
|
||||
|
||||
- name: Deploy to Cloudflare Pages
|
||||
uses: cloudflare/pages-action@v1
|
||||
with:
|
||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
projectName: hugo-theme-gruvbox
|
||||
directory: ./public
|
||||
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
|
35
themes/hugo-theme-gruvbox/.github/workflows/renovate-hugo-modules.yml
vendored
Normal file
35
themes/hugo-theme-gruvbox/.github/workflows/renovate-hugo-modules.yml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
name: Renovate Hugo Modules
|
||||
|
||||
on: pull_request
|
||||
|
||||
jobs:
|
||||
renovate_hugo_modules:
|
||||
name: Renovate Hugo Modules
|
||||
if: startsWith(github.head_ref, 'renovate/hugo-modules')
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Pull Request HEAD Commit
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
|
||||
- name: Install Hugo
|
||||
uses: peaceiris/actions-hugo@v2
|
||||
with:
|
||||
hugo-version: "0.111.3"
|
||||
extended: true
|
||||
|
||||
- name: Update All Hugo Modules
|
||||
run: hugo mod get -u
|
||||
|
||||
- name: Tidy Hugo Modules
|
||||
run: hugo mod tidy
|
||||
|
||||
- name: Display Changes
|
||||
run: git status
|
||||
|
||||
- name: Commit Changes
|
||||
uses: stefanzweifel/git-auto-commit-action@v5
|
||||
with:
|
||||
commit_message: Renovate Hugo Modules
|
||||
commit_author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
|
Reference in New Issue
Block a user