Skip to content

Commit

Permalink
build(github): add workflow for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
dnlzrgz committed Nov 30, 2024
1 parent baf5837 commit c10c0aa
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/release.yaml → .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,36 @@ name: Release
on:
release:
types: ["published"]
workflow_dispatch:

permissions:
contents: read

jobs:
run:
name: Release
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest

environment:
name: release
url: https://pypi.org/project/housaku/

permissions:
id-token: write

steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: uv.lock

- name: Set up Python
run: uv python install 3.13

- name: Build
run: uv build

- name: Publish
run: uv publish -t ${{ secrets.PYPI_TOKEN }}
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "housaku"
version = "v0.7.9"
version = "v0.7.10"
description = "A personal search engine built on top of SQLite's FTS5."
readme = "README.md"
license = "MIT"
Expand Down
8 changes: 4 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c10c0aa

Please sign in to comment.