mirror of
https://github.com/litruv/lit.ruv.wtf.git
synced 2026-07-24 18:56:02 +10:00
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.
This commit is contained in:
33
.github/workflows/build-site.yml
vendored
Normal file
33
.github/workflows/build-site.yml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
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
|
||||
Reference in New Issue
Block a user