Skip to content

Commit

Permalink
* restore github publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mkvanhooft committed Feb 21, 2024
1 parent fcc4bc2 commit bb69719
Showing 1 changed file with 33 additions and 48 deletions.
81 changes: 33 additions & 48 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,53 +1,38 @@

name: WARNING this pipeline is temporarily disabled
name: Publish Python 🐍 distributions πŸ“¦ to PyPI and TestPyPI

on: push
jobs:
raise-warning:
name: WARNING temporarily disabled
build-n-publish:
name: Build and publish Python 🐍 distributions πŸ“¦ to PyPI and TestPyPI
runs-on: ubuntu-latest
steps:
- name: raise warning
run: >-
python -c
"print('WARNING this pipeline is temporarily disabled\n
This is a temporary measure for the in development work, we do not want to publish these versions to pypi')"
# TODO This is a temporary measure for the in development work, we don't want to publish these versions to pypi
#
#name: Publish Python 🐍 distributions πŸ“¦ to PyPI and TestPyPI
#
# build-n-publish:
# name: Build and publish Python 🐍 distributions πŸ“¦ to PyPI and TestPyPI
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@master
# - name: Set up Python 3.8
# uses: actions/setup-python@v1
# with:
# python-version: 3.8
# - name: Install pypa/build
# run: >-
# python -m
# pip install
# build
# --user
# - name: Build a binary wheel and a source tarball
# run: >-
# python -m
# build
# --sdist
# --wheel
# --outdir dist/
# .
# - name: Publish distribution πŸ“¦ to Test PyPI
# if: startsWith(github.ref, 'refs/tags')
# uses: pypa/gh-action-pypi-publish@master
# with:
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
# repository_url: https://test.pypi.org/legacy/
# - name: Publish distribution πŸ“¦ to PyPI
# if: success() && startsWith(github.ref, 'refs/tags')
# uses: pypa/gh-action-pypi-publish@master
# with:
# password: ${{ secrets.PYPI_API_TOKEN }}
- uses: actions/checkout@master
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish distribution πŸ“¦ to Test PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
- name: Publish distribution πŸ“¦ to PyPI
if: success() && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit bb69719

Please sign in to comment.