Adds b64pack CLI tool with packaging and deployment
Some checks failed
Build and Publish b64pack / build-and-publish (push) Failing after 11s
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.
This commit is contained in:
44
.gitea/workflows/build-and-deploy.yml
Normal file
44
.gitea/workflows/build-and-deploy.yml
Normal file
@@ -0,0 +1,44 @@
|
||||
# .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/*
|
Reference in New Issue
Block a user