cmc/cleberg.net
My personal web garden & blog.
clone: git clone https://gitbay.org/cmc/cleberg.net.git
1bbf072da3c52289dcd89acd7b93eab489b18d14
unsigned
author: Christian Cleberg <hello@cleberg.net> · 2025-05-01T03:24:42Z
.github/FUNDING.yml | 15 --------------- .github/workflows/ruff.yml | 37 ------------------------------------- install-hooks.sh | 4 ---- utils/hooks/post-checkout | 3 --- utils/hooks/post-commit | 16 ---------------- utils/hooks/post-push | 29 ----------------------------- 6 files changed, 104 deletions(-) deleted file mode 100644 @@ -1,15 +0,0 @@ -# These are supported funding model platforms - -github: [ccleberg] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] -# patreon: # Replace with a single Patreon username -# open_collective: # Replace with a single Open Collective username -# ko_fi: # Replace with a single Ko-fi username -# tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel -# community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -# liberapay: # Replace with a single Liberapay username -# issuehunt: # Replace with a single IssueHunt username -# lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry -# polar: # Replace with a single Polar username -# buy_me_a_coffee: # Replace with a single Buy Me a Coffee username -# thanks_dev: # Replace with a single thanks.dev username -# custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] deleted file mode 100644 @@ -1,37 +0,0 @@ -name: Ruff - -on: - push: - paths: - - '**.py' - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.x"] - steps: - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - ref: ${{ github.event.pull_request.head.ref }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install pandas plotly - - name: Install Ruff - uses: astral-sh/ruff-action@v3.2.2 - - name: Ruff Actions - run: | - ruff check --fix - ruff format - - name: Add and Commit - uses: EndBug/add-and-commit@v9 - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - default_author: github_actions - pathspec_error_handling: ignore deleted file mode 100755 @@ -1,4 +0,0 @@ -# install-hooks.sh -#!/bin/bash -cp utils/hooks/* .git/hooks/ -chmod +x .git/hooks/* deleted file mode 100644 @@ -1,3 +0,0 @@ -# .git/hooks/post-checkout -#!/bin/bash -echo "You're now on branch $(git rev-parse --abbrev-ref HEAD)" deleted file mode 100644 @@ -1,16 +0,0 @@ -# .git/hooks/post-commit -#!/bin/bash -echo "Environment: Development" - -# Remove previous build -rm -rf .build/* - -# Run publishing script -emacs --script publish.el - -# Minify CSS -minify -o theme/static/styles.min.css theme/static/styles.css - -# Launch development web server -cd .build/ -python3 -m http.server deleted file mode 100644 @@ -1,29 +0,0 @@ -# .git/hooks/post-push -#!/bin/bash -echo "Environment: Production" - -# Check if publishing via LAN or remotely -printf "Publishing on remote or LAN? [r|l] " - -# Update ubuntu_server variable based on answer -read method -if [[ "$method" =~ ^[Rr]$ ]]; then - ubuntu_server="ubuntu-remote" -elif [[ "$method" =~ ^[Ll]$ ]]; then - ubuntu_server="ubuntu" -else - echo "Invalid input. Assuming LAN (ubuntu)" - ubuntu_server="ubuntu" -fi - -# Remove previous build -rm -rf .build/* - -# Run publishing script -emacs --script publish.el &>/dev/null - -# Minify CSS -minify -o theme/static/styles.min.css theme/static/styles.css - -# Deploy changes -rsync -r --delete-before .build/* $ubuntu_server:/var/www/cleberg.net/