Skip to content

Commit

Permalink
Switch pypi publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
rjfarmer committed Jul 10, 2024
1 parent c2f912f commit a1c8f3a
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 42 deletions.
42 changes: 0 additions & 42 deletions .github/workflows/publish-to-test-pypi.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish Python 🐍 distribution 📦 to PyPI

on: push

jobs:
build:
name: Build distribution 📦
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install pypa/build
run: >-
python3 -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: python3 -m build

publish-to-pypi:
name: >-
Publish Python 🐍 distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
needs:
- build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/mesaPlot
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing

0 comments on commit a1c8f3a

Please sign in to comment.