Some checks failed
Build and Publish b64pack / build-and-publish (push) Failing after 11s
Introduces the b64pack CLI tool for packing, encoding, and decoding files or directories into Base64, with essential features and a simple interface. Sets up automated build and deploy workflow for the tool using Gitea Actions. Includes Poetry configuration for dependency management and packaging. Fixes copyright metadata and updates documentation in English and German.
45 lines
1.0 KiB
YAML
45 lines
1.0 KiB
YAML
# .gitea/workflows/publish.yml
|
|
|
|
name: Build and Publish b64pack
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- "b64pack/pyproject.toml" # Nur bei Änderungen an dieser Datei
|
|
workflow_dispatch: # Manuelles Anstoßen zulassen
|
|
|
|
jobs:
|
|
build-and-publish:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: 🐍 Setup Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.12"
|
|
|
|
- name: Install Poetry
|
|
run: |
|
|
pip install poetry
|
|
|
|
- name: Install Project Dependencies
|
|
working-directory: b64pack
|
|
run: |
|
|
poetry install
|
|
|
|
- name: Build Package
|
|
working-directory: b64pack
|
|
run: |
|
|
poetry build
|
|
|
|
- name: Publish to Gitea Package Registry
|
|
working-directory: b64pack
|
|
env:
|
|
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
|
|
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
|
|
run: |
|
|
poetry run twine upload --repository-url ${{ secrets.TWINE_URL }} dist/*
|