First commit

This commit is contained in:
florian committed 2026-10-29 15:28:51 +01:00
1 parent a77e0fb890
commit 6e7c2a5de6
7 files changed
+367

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
name: Build and Publish Package
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Prepare environment
run: |
virtualenv -p python3 .venv
source .venv/bin/activate
pip install build twine
pip install -e ".[test]"
- name: Run Tests
run: |
.venv/bin/python -m pytest
- name: Build package
run: .venv/bin/python -m build
- name: Publish package
run: |
.venv/bin/python -m twine upload \
--repository-url https://git.gansejunge.com/api/packages/notifier/pypi \
-u ${{ secrets.PACKAGE_UPLOAD_USERNAME }} \
-p ${{ secrets.PACKAGE_UPLOAD_TOKEN }} \
dist/*