Skip to content

Commit 6976a79

Browse files
authored
add deploy workflow for hatch-vcs-tunable (#8)
This will use tags that match a prefix pattern to trigger a deploy to pypi, using the pypi trusted deploy OIDC connector (configuration is on pypi's side) to do so without needing to save credentials.
1 parent ca904aa commit 6976a79

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: 'publish hatch-vcs-tunable'
2+
on:
3+
push:
4+
tags:
5+
- 'hatch-vcs-tunable@*'
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
environment:
11+
name: hatch-vcs-tunable-pypi-release
12+
url: https://pypi.org/p/hatch-vcs-tunable
13+
permissions:
14+
id-token: write
15+
steps:
16+
- name: Fetch source for package build
17+
uses: actions/checkout@v3
18+
- name: Build distribution
19+
run: |
20+
python -m pip install hatch
21+
hatch build
22+
working-directory:
23+
hatch-vcs-tunable
24+
- name: Publish package distributions to PyPI
25+
uses: pypa/gh-action-pypi-publish@release/v1
26+
with:
27+
packages-dir: hatch-vcs-tunable/dist

0 commit comments

Comments
 (0)