From 464297f54d701c302b083b632c822b4dde9aa23d Mon Sep 17 00:00:00 2001 From: tsxc Date: Sun, 26 Jan 2025 18:23:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=8C=96=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yaml | 28 ++++++++++++++++++++++++++++ requirements.txt | 4 ++++ run.sh | 4 ++++ 3 files changed, 36 insertions(+) create mode 100644 .github/workflows/release.yaml create mode 100644 requirements.txt create mode 100644 run.sh diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..2052f73 --- /dev/null +++ b/.github/workflows/release.yaml @@ -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 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..5f8f6f0 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +datetime +requests +markdownify +python-dateutil \ No newline at end of file diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..619d120 --- /dev/null +++ b/run.sh @@ -0,0 +1,4 @@ +git clone https://github.com/Light-Beacon/HomepageBuilder +pip install ./HomepageBuilder +pip install -r ./requirements.txt +python ./script.py \ No newline at end of file