1
Fork 0
This commit is contained in:
Jake Howard 2023-03-26 19:57:10 +01:00
parent 4fb1df89d0
commit e075abd796
Signed by: jake
GPG Key ID: 57AFB45680EDD477
3 changed files with 23 additions and 0 deletions

19
.gitea/workflows/ci.yml Normal file
View 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
View 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
View File

@ -1,3 +1,5 @@
#!/usr/bin/env python3
import requests
from pathlib import Path
from resize import OUTPUT_DIR