Skip to content

Commit 77ad3f7

Browse files
committed
new release workflow
1 parent d5e523a commit 77ad3f7

File tree

2 files changed

+40
-31
lines changed

2 files changed

+40
-31
lines changed

.github/workflows/publish.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build and publish python package
2+
3+
on:
4+
release:
5+
types: [ published ]
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
pypi-publish:
12+
name: Upload release to PyPI
13+
runs-on: ubuntu-latest
14+
environment:
15+
name: pypi
16+
url: https://pypi.org/project/hough/
17+
permissions:
18+
id-token: write
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
with:
23+
persist-credentials: false
24+
- name: Set up Python
25+
uses: actions/setup-python@v5
26+
with:
27+
python-version: "3.x"
28+
- name: Install Poetry
29+
run: |
30+
curl -sSL https://install.python-poetry.org | python - -y
31+
- name: Update PATH
32+
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
33+
- name: Update Poetry configuration
34+
run: poetry config virtualenvs.create false
35+
- name: Install dependencies
36+
run: poetry sync --no-interaction
37+
- name: Package project
38+
run: poetry build
39+
- name: Publish package distributions to PyPI
40+
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/release.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)