ci: create release

This commit is contained in:
2 * r + 2 * t
2025-09-13 23:36:01 +10:00
parent 2eda287a80
commit 721b26ac60
2 changed files with 45 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
name: Create release
on:
push:
tags:
- "v*"
jobs:
build-and-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Clean stale artifacts
run: git clean -dfx
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install build
run: |
python -m pip install --upgrade pip
pip install build
- name: Create packages
run: python -m build
- name: Create release
uses: softprops/action-gh-release@v2
with:
files: dist/*
generate_release_notes: true
+7
View File
@@ -17,5 +17,12 @@ caelestia = "caelestia:main"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.targets.sdist]
only-include = [
"src",
"completions",
"README.md"
]
[tool.ruff]
line-length = 120