Skip to content

Commit

Permalink
Merge pull request #48 from Liam-Deacon:fix/publish-to-pypi-environme…
Browse files Browse the repository at this point in the history
…nt-fix

fix: Fix environment in publish-to-pypi.yaml action
  • Loading branch information
Liam-Deacon authored Jan 15, 2024
2 parents 9913585 + 1bffe20 commit a687029
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/publish-to-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ name: Publish Package

on: [release]

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

permissions:
contents: read
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
Expand All @@ -17,6 +13,9 @@ jobs:
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest"] # .tar.gz on linux, .zip on windows
environment:
name: pypi
url: https://pypi.org/p/phaseshifts
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down Expand Up @@ -50,6 +49,9 @@ jobs:
strategy:
matrix:
python-version: ["2.7", "3.5", "3.6"]
environment:
name: pypi
url: https://pypi.org/p/phaseshifts
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down Expand Up @@ -79,6 +81,9 @@ jobs:
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
environment:
name: pypi
url: https://pypi.org/p/phaseshifts
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down Expand Up @@ -108,6 +113,9 @@ jobs:
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
environment:
name: pypi
url: https://pypi.org/p/phaseshifts
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand All @@ -133,10 +141,13 @@ jobs:

publish_mac_wheels:
name: Publish for Mac OS X
runs-on: macos-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"] # limited as macos runner minutes are 10x expensive compared to ubuntu
runs-on: macos-latest
environment:
name: pypi
url: https://pypi.org/p/phaseshifts
steps:
- uses: actions/checkout@v4
- name: Build wheels
Expand Down

0 comments on commit a687029

Please sign in to comment.