Skip to content

Commit

Permalink
(Issue #94) We will publish to PyPI manually for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
jared321 committed Sep 19, 2024
1 parent 0281d99 commit 443b686
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ name: Build, Test, & Publish Wheel
env:
CLONE_PATH: ${{ github.workspace }}
on:
# Limit to only branches named release_v*.*?
#
# Should this eventually be set to just released so that prereleases aren't
# sent to PyPI?
# TODO: Limit to only branches named release/v*.* once the new git workflow is
# in place.
release:
branches: [main]
types: [published]

jobs:
Expand Down Expand Up @@ -123,18 +122,22 @@ jobs:
python -c "import Taweret ; print(Taweret.__version__) ; exit(not Taweret.test())"
rm -rf $venv
publish:
needs: [test]
environment: pypi
# Since we only publish releases a few times a year, we are presently
# preferring to manually publish to PyPI the artifacts created by this
# action.
#
# THE FOLLOWING HAS NEVER BEEN REVIEWED OR RUN. IT IS EFFECTIVELY A
# PLACEHOLDER.
# publish:
# needs: [test]
# environment: pypi
# permissions:
# id-token: write
runs-on: ubuntu-latest
# runs-on: ubuntu-latest
# if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v4
with:
name: Taweret-distributions
path: ${{ env.CLONE_PATH }}/dist
- name: Standin for now
run: ls -lart $CLONE_PATH/dist
# steps:
# - uses: actions/download-artifact@v4
# with:
# name: Taweret-distributions
# path: ${{ env.CLONE_PATH }}/dist
# - uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 443b686

Please sign in to comment.