1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
name: Release
on:
workflow_dispatch:
push:
tags:
- "v*.*.*"
jobs:
generate-release:
name: 🏔️ Generate GitHub release
runs-on: ubuntu-latest
outputs:
release_body: ${{ steps.git-cliff.outputs.content }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Generate a changelog
uses: orhun/git-cliff-action@v4
id: git-cliff
with:
config: pyproject.toml
args: -vv --latest --strip header
env:
OUTPUT: CHANGES.md
- name: Release
uses: softprops/action-gh-release@v2
with:
body_path: CHANGES.md
if: startsWith(github.ref, 'refs/tags/')
# tests:
# uses: vemonet/rdflib-endpoint/.github/workflows/test.yml@main
# secrets: inherit
# publish:
# needs: tests
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v6
# - name: Set up Python
# uses: astral-sh/setup-uv@v7
# - name: Install dependencies
# run: uv build
# - name: Publish package
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# user: __token__
# password: ${{ secrets.PYPI_TOKEN }}
|