Skip to content

Commit

Permalink
release.yml fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wrguenthner committed Apr 20, 2024
1 parent fe27259 commit 31fcf24
Showing 1 changed file with 7 additions and 22 deletions.
29 changes: 7 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,16 @@ permissions:

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"


name: Build distribution 📦
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: "3.x"
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
Expand All @@ -43,16 +33,13 @@ jobs:
path: dist/

publish-to-pypi:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]


name: >-
Publish Python 🐍 distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags/')
needs:
- build
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/pythermo
Expand All @@ -69,15 +56,13 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1

github-release:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

name: >-
Sign the Python 🐍 distribution 📦 with Sigstore
and upload them to GitHub Release
needs:
- publish-to-pypi
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest

permissions:
contents: write
Expand Down

0 comments on commit 31fcf24

Please sign in to comment.