mirror of
https://github.com/jdejaegh/python-irceline.git
synced 2025-06-27 03:35:56 +02:00
Update publish workflow
This commit is contained in:
parent
0bf7b787d9
commit
869f468afd
1 changed files with 22 additions and 0 deletions
22
.github/workflows/release.yml
vendored
22
.github/workflows/release.yml
vendored
|
@ -9,6 +9,8 @@ permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
tests:
|
||||||
|
uses: ./.github/workflows/pytest.yml
|
||||||
release:
|
release:
|
||||||
name: Release pushed tag
|
name: Release pushed tag
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
@ -22,3 +24,23 @@ jobs:
|
||||||
--repo="$GITHUB_REPOSITORY" \
|
--repo="$GITHUB_REPOSITORY" \
|
||||||
--title="${GITHUB_REPOSITORY#*/} ${tag#v}" \
|
--title="${GITHUB_REPOSITORY#*/} ${tag#v}" \
|
||||||
--generate-notes
|
--generate-notes
|
||||||
|
publish:
|
||||||
|
name: Publish to PyPI
|
||||||
|
needs: [tests] # require tests to pass before deploy runs
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout source
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Set up Python 3.11
|
||||||
|
uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: 3.11
|
||||||
|
- name: Build package
|
||||||
|
run: |
|
||||||
|
python -m pip install -U pip build
|
||||||
|
python -m build
|
||||||
|
- name: Publish
|
||||||
|
uses: pypa/gh-action-pypi-publish@v1.5.0
|
||||||
|
with:
|
||||||
|
user: __token__
|
||||||
|
password: ${{ secrets.PYPI_KEY }}
|
Loading…
Add table
Reference in a new issue