自动化构建

This commit is contained in:
tsxc 2025-01-26 18:23:03 +08:00
parent 561272c197
commit 464297f54d
3 changed files with 36 additions and 0 deletions

28
.github/workflows/release.yaml vendored Normal file
View File

@ -0,0 +1,28 @@
name: Build
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
packages: read
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: 3.11
- name: run shell script
run: |
bash ./run.sh

4
requirements.txt Normal file
View File

@ -0,0 +1,4 @@
datetime
requests
markdownify
python-dateutil

4
run.sh Normal file
View File

@ -0,0 +1,4 @@
git clone https://github.com/Light-Beacon/HomepageBuilder
pip install ./HomepageBuilder
pip install -r ./requirements.txt
python ./script.py