Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
afraniomelo authored Aug 24, 2024
1 parent f28b2d4 commit 38d088e
Showing 1 changed file with 22 additions and 15 deletions.
37 changes: 22 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Build, Test, and Publish to PyPI
on:
push:
tags:
- 'v*.*.*' # Matches version tags like v1.0.0, v2.1.3, etc.
- 'v*.*.*' # Matches version tags like v1.0.0, v2.1.3, etc.

jobs:
pypi-publish:
name: Upload release to PyPI
Expand All @@ -13,22 +14,28 @@ jobs:
fail-fast: false
matrix:
python-version: ["3.12"]

environment:
name: pypi
url: https://pypi.org/p/bibmon

permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing

steps:
# retrieve your distributions here
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies and generate package
run: |
python -m pip install --upgrade pip
pip install --upgrade setuptools
python setup.py sdist bdist_wheel
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies and generate package
run: |
python -m pip install --upgrade pip
pip install --upgrade setuptools
python setup.py sdist bdist_wheel
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 38d088e

Please sign in to comment.