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