mirror of
https://github.com/litruv/lit.ruv.wtf.git
synced 2026-07-24 02:36:02 +10:00
moved things to website dir
This commit is contained in:
8
.github/workflows/build-site.yml
vendored
8
.github/workflows/build-site.yml
vendored
@@ -3,11 +3,11 @@ name: Build Site
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- master # Or your main branch, e.g., main
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.actor != 'github-actions[bot]' && github.ref == 'refs/heads/main'
|
||||
if: github.actor != 'github-actions[bot]' && github.ref == 'refs/heads/master' # Or your main branch
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
@@ -26,8 +26,8 @@ jobs:
|
||||
run: |
|
||||
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git config --local user.name "github-actions[bot]"
|
||||
# Add all HTML files in the root directory
|
||||
git add -- '*.html'
|
||||
# Add all HTML files in the website directory
|
||||
git add -- 'website/*.html'
|
||||
# Only commit if there are staged changes
|
||||
git diff --staged --quiet || git commit -m "Automated build: Update generated site files"
|
||||
git push
|
||||
|
||||
Reference in New Issue
Block a user