项目:painting 主题

- 项目初始版本
 - 项目默认主题 painting
This commit is contained in:
2023-10-30 15:56:29 +08:00
commit 9db6bc6736
30 changed files with 3186 additions and 0 deletions

44
.github/workflows/build-and-run.yml vendored Normal file
View File

@@ -0,0 +1,44 @@
name: Build and Run
on:
push:
branches:
- main
jobs:
build-and-run:
runs-on: ubuntu-latest
steps:
- name: 1. Checkout repository
uses: actions/checkout@v4
- name: 2. Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: 3. Install
run: |
pip install --upgrade pip
pip install -r requirements.txt
- name: 4. Run
run: |
python ./main.py &
sleep 7
- name: 5. Build
run: |
wget http://localhost:7777
- name: 6. Log
run: |
cat endofyear.log
- name: 7. Push static HTML
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./static
publish_branch: html

24
.github/workflows/docker-publish.yml vendored Normal file
View File

@@ -0,0 +1,24 @@
name: Publish Docker image
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and push Docker image
run: |
docker build -t sevenwate/endofyear:latest .
docker push sevenwate/endofyear:latest