Skip to content

Commit

Permalink
DEV-19025: release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreznikoff committed Feb 12, 2025
1 parent f4223a7 commit 5103a7a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build and publish package to PyPI

on:
release:
types: [ published ]

jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-20.04
permissions:
id-token: write
steps:
- uses: actions/checkout@v4

- uses: pdm-project/setup-pdm@v4
with:
version: 2.20.1

- name: Publish package distributions to PyPI
run: pdm publish
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "huntflow-base-metrics"
version = "0.2.0"
description = "Prometheus metrics for Huntflow services"
authors = [
{name = "Aleksandr Kuznetsov", email = "akuznetsov@huntflow.ru"},
{name = "Developers huntflow", email = "developer@huntflow.ru"},
]
dependencies = [
"prometheus-client>=0.21.0",
Expand Down

0 comments on commit 5103a7a

Please sign in to comment.