This commit is contained in:
gfdgd_xi 2023-06-27 13:50:27 +08:00
parent 82581a1aeb
commit 0f44c1c181
2 changed files with 25 additions and 1 deletions

24
.github/workflows/autoload.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: Building Wine 7z Package(daily)
run-name: ${{ github.actor }} Building Wine 7z Package (daily)🚀
on: [push]
jobs:
Explore-GitHub-Actions:
runs-on: ubuntu-latest
steps:
- name: Building Wine
env:
GUSER: ${{ secrets.GUSER }}
PASSWORD: ${{ secrets.PASSWORD }}
UPLOADURL: ${{ secrets.UPLOADURL }}
run: |
# 配置编译容器
sudo apt update
sudo apt install python3 python3-requests git neofetch -y
neofetch
#https://github.com/gfdgd-xi/wine-mirrors-websize/raw/master/information.json
git clone https://$USER:$PASSWORD@github.com/gfdgd-xi/wine-mirrors-websize
cd wine-mirrors-websize
python3 update.py
git add .
git commit -m 更新
git push

View File

@ -21,7 +21,7 @@ html = f"""<!DOCTYPE html>
"""
#with open(f"information.json", "r") as file:
# lists = json.loads(file.read())
lists = requests.get("http://wine.wine-runner.gfdgdxi.top/information.json").json()
lists = requests.get("https://github.com/gfdgd-xi/wine-mirrors-websize/raw/master/information.json").json()
for i in lists:
html += f" <p><a href='{i[1]}'>{i[0]}</a></p>\n"
html += f""" <p><a href='https://gitee.com/gfdgd-xi/deep-wine-runner/stargazers'><img src='https://gitee.com/gfdgd-xi/deep-wine-runner/badge/star.svg?theme=dark' alt='star'></img></a><a href='https://gitee.com/gfdgd-xi/deep-wine-runner/members'><img src='https://gitee.com/gfdgd-xi/deep-wine-runner/badge/fork.svg?theme=dark' alt='fork'></img></a></p>