diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..e206bdf --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -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 diff --git a/resize.py b/resize.py old mode 100644 new mode 100755 index 3920bca..b503b31 --- a/resize.py +++ b/resize.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + import requests from cairosvg import svg2png from pathlib import Path diff --git a/upload.py b/upload.py old mode 100644 new mode 100755 index 5afed22..470cd48 --- a/upload.py +++ b/upload.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + import requests from pathlib import Path from resize import OUTPUT_DIR