Skip to content

Add GitHub Actions workflow for automatic semantic release #1

Add GitHub Actions workflow for automatic semantic release

Add GitHub Actions workflow for automatic semantic release #1

name: Auto Release
on:
push:
branches: [ main ]
permissions:
contents: write
jobs:
semantic-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # wichtig für Tags/History
- uses: actions/setup-python@v5
with:
python-version: "3.x"
cache: "pip"
- name: Install tools
run: |
python -m pip install --upgrade pip
python -m pip install python-semantic-release build
- name: Semantic Release (bump version, tag, GitHub release)
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
semantic-release version
semantic-release publish