add buttons workflow

This commit is contained in:
Ruben 2024-10-08 21:28:40 -05:00
commit 01b36b508e
No known key found for this signature in database
GPG key ID: AE181294E97E4802
3 changed files with 89 additions and 1 deletions

58
.forgejo/buttons.sh Normal file
View file

@ -0,0 +1,58 @@
#!/usr/bin/env bash
set -euo pipefail
# script downloads buttons manually and hosts them. so hotlinking but Not Really
# probably don't need to do this/this is probably worse but it runs weekly so its not *that* bad i think??
BUTTONS_DIR=/workspace/sneexy/pages/assets/buttons/friends
# 23sonics
wget "https://23sonics.zone/media/88x31/me.gif" -O "${BUTTONS_DIR}/23sonics.gif"
# authenyo
wget "https://authenyo.xyz/images/button.gif" -O "${BUTTONS_DIR}/authenyo.gif"
# autumn
wget "http://autumn.town/assets/buttons/mybutton.webp" -O "${BUTTONS_DIR}/autumn.gif"
# av70
wget "https://av70.neocities.org/assets/88x31/av70.gif" -O "${BUTTONS_DIR}/av70.gif"
# birdcat
wget "https://birdcat.online/img/buttons/birdcatonline.gif" -O "${BUTTONS_DIR}/birdcat.gif"
# david
wget "https://david.garden/wp-content/uploads/2024/09/david-site-button.png" -O "${BUTTONS_DIR}/david.png"
# sirlan
wget "https://dragon-vi.be/buttons/button.png" -O "${BUTTONS_DIR}/sirlan.png"
# drakonic
wget "https://drakonic.zone/images/button.gif" -O "${BUTTONS_DIR}/drakonic.zone"
# charon
wget "https://cdn.exlitry.world/media/buttons/exlitry.world.gif" -O "${BUTTONS_DIR}/exlitry.world.gif"
# freeplay
wget "https://freeplay.floof.company/assets/buttons/free.gif" -O "${BUTTONS_DIR}/freeplay.gif"
# thermia
wget "https://girlthi.ng/~thermia/img/88x31/thermia.gif" -O "${BUTTONS_DIR}/thermia.gif"
# kyropy
wget "https://kyropy.neocities.org/images/kyropybutton.svg" -O "${BUTTONS_DIR}/kyropy.svg"
# lars
wget "https://larsfrommars.neocities.org/buttons/lars.png" -O "${BUTTONS_DIR}/lars.png"
# micro
wget "https://git.gay/Micro/pages/raw/branch/egui-rewrite/src/assets/buttons/micro.png" -O "${BUTTONS_DIR}/micro.png"
# notfire
wget "https://notfire.cc/design/images/buttons/notfire-cc-88x31-af.gif" -O "${BUTTONS_DIR}/notfire.gif"
# odoben
wget "https://odoben.space/img/odoben_88x31.png" -O "${BUTTONS_DIR}/odoben.png"
# millions
wget "https://ofplayers.net/images/88x31/millions.png" -O "${BUTTONS_DIR}/millions.png"
# pc100
wget "https://oli.pages.gay/badges/WebButton.svg" -O "${BUTTONS_DIR}/pc100.svg"
# therra
wget "https://smolderg.xyz/img/badges/theysosmall_by_liah.png" -O "${BUTTONS_DIR}/theysosmall.png"
# lexi
wget "https://softkittypa.ws/assets/buttons/softkittypaws.png" -O "${BUTTONS_DIR}/lexi.png"
# coffy
wget "https://sweetcoffy.pages.gay/assets/button.png" -O "${BUTTONS_DIR}/sweetcoffy.png"
# pancakes
wget "https://trypancakes.com/assets/88x31.png" -O "${BUTTONS_DIR}/pancakes.png"
# unnick
wget "https://unnick.mice.tel/88x31.png" -O "${BUTTONS_DIR}/unnick.png"
# kopper
wget "https://w.on-t.work/assets/88x31.png" -O "${BUTTONS_DIR}/wontwork.png"
# winter
wget "https://winter.entities.org.uk/buttons/self.png" -O "${BUTTONS_DIR}/winter.png"

View file

@ -0,0 +1,31 @@
on:
push:
schedule:
- cron: '0 8 * * 6'
jobs:
build:
runs-on: docker
steps:
- uses: actions/checkout@v4
with:
ref: 'main'
- name: git setup
run: |
git config --local user.name "protogen"
git config --local user.email "proot@toasters.com"
- name: download buttons
run: |
chmod +x /workspace/sneexy/pages/.forgejo/buttons.sh
bash -c "/workspace/sneexy/pages/.forgejo/buttons.sh"
- name: push updated buttons
id: github-push
run: |
git config pull.rebase true
git add .
git diff-index --quiet HEAD || git commit -m "beep~! (updated buttons)"
git push

View file

@ -276,7 +276,6 @@
<div class="buttons">
<p>friends!</p>
<a href="https://23sonics.zone"><img src="https://23sonics.zone/media/88x31/me.gif" alt="23Sonics" title="23Sonics"></a>
<a href="https://amycatgirl.nekoweb.org"><img src="https://amycatgirl.nekoweb.org/assets/8831.png" alt="amycatgirl" title="amycatgirl"></a>
<a href="https://authenyo.xyz"><img src="https://authenyo.xyz/images/button.gif" alt="authenyo" title="authenyo"></a>
<a href="https://autumn.town"><img src="http://autumn.town/assets/buttons/mybutton.webp" alt="Autumn Town Café" title="Autumn Town Café"></a>
<a href="https://av70.neocities.org"><img src="https://av70.neocities.org/assets/88x31/av70.gif" alt="av70" title="av70"></a>