Files
lit.ruv.wtf/.github/workflows/build-site.yml
Max Litruv Boonzaayer cd428b4a6d Refactor website structure and update licenses
- Replaced Apache License with MIT License in LICENSE file.
- Updated index.html with common meta tags and improved structure.
- Enhanced privacy.html with new styles and scripts for better presentation.
- Added sitemap reference in robots.txt.
- Created GitHub Actions workflow for automated site builds.
- Added .gitignore to exclude unnecessary files from version control.
- Implemented build.js for dynamic HTML generation from templates.
- Created src/index.html and src/privacy.html with metadata for dynamic content.
- Established templates for header, footer, and layout to standardize page structure.
2025-06-06 12:35:26 +10:00

34 lines
929 B
YAML

name: Build Site
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
if: github.actor != 'github-actions[bot]' && github.ref == 'refs/heads/main'
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20' # LTS version
- name: Build site
run: node build.js
- name: Commit and push changes
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'
# Only commit if there are staged changes
git diff --staged --quiet || git commit -m "Automated build: Update generated site files"
git push