Skip to content

Commit

Permalink
renamed publish as release
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpeckham committed Feb 1, 2024
1 parent 96c68b8 commit 9c9a248
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
name: publish
name: release

on:
push:
tags: ["*"]

jobs:
deploy:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/[email protected]
- name: Set up Python
Expand All @@ -21,9 +25,8 @@ jobs:
pip install hatch-vcs
pip install hatch-fancy-pypi-readme
- name: Build and publish
env:
HATCH_INDEX_USER: ${{ secrets.PYPI_USERNAME }}
HATCH_INDEX_AUTH: ${{ secrets.PYPI_PASSWORD }}
run: |
hatch build
hatch publish
# hatch publish
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 9c9a248

Please sign in to comment.