parent
4fb1df89d0
commit
e075abd796
3 changed files with 23 additions and 0 deletions
19
.gitea/workflows/ci.yml
Normal file
19
.gitea/workflows/ci.yml
Normal file
|
@ -0,0 +1,19 @@
|
|||
name: CI
|
||||
on:
|
||||
- push
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container: catthehacker/ubuntu:act-latest
|
||||
steps:
|
||||
- uses: "https://github.com/actions/checkout@v3"
|
||||
- name: Set up Python
|
||||
uses: "https://github.com/actions/setup-python@v4"
|
||||
with:
|
||||
python-version: "3.11"
|
||||
- name: Build
|
||||
run: ./resize.py
|
||||
- name: Upload
|
||||
run: ./upload.py
|
||||
- run: env
|
2
resize.py
Normal file → Executable file
2
resize.py
Normal file → Executable file
|
@ -1,3 +1,5 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import requests
|
||||
from cairosvg import svg2png
|
||||
from pathlib import Path
|
||||
|
|
2
upload.py
Normal file → Executable file
2
upload.py
Normal file → Executable file
|
@ -1,3 +1,5 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import requests
|
||||
from pathlib import Path
|
||||
from resize import OUTPUT_DIR
|
||||
|
|
Reference in a new issue