Skip to content

Commit

Permalink
Prepping for v1.3.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
pllim committed Nov 29, 2023
1 parent cfe2546 commit e7e1629
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/publish-to-pypi.yml
@@ -1,7 +1,7 @@
name: Release

on:
pull_request:
workflow_dispatch:
release:
types: [released]

Expand All @@ -14,6 +14,11 @@ jobs:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
if: github.repository == 'spacetelescope/stsynphot_refactor'
environment:
name: release
url: https://pypi.org/p/stsynphot
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing

steps:
- uses: actions/checkout@v4
Expand All @@ -22,7 +27,7 @@ jobs:

- uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.x'

- name: Install python-build and twine
run: python -m pip install build "twine>=3.3"
Expand All @@ -43,13 +48,6 @@ jobs:
testenv/bin/pip install pytest-astropy ci-watson stsynphot_refactor/dist/*.whl
testenv/bin/python -c "import stsynphot; stsynphot.test()"
# FOR DEBUGGING ONLY: repository_url (TestPyPI) and verbose;
# Use appropriate token if debugging with TestPyPI
- name: Publish distribution 📦 to PyPI
if: github.event_name == 'release'
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
#repository_url: https://test.pypi.org/legacy/
#verbose: true
2 changes: 1 addition & 1 deletion CHANGES.rst
@@ -1,4 +1,4 @@
1.3.0 (unreleased)
1.3.0 (2023-11-28)
==================

- Compatibility with ``numpy`` 2.0. [#181]
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Expand Up @@ -13,8 +13,8 @@ stsynphot
:target: https://stsynphot.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status

.. image:: https://github.com/spacetelescope/stsynphot_refactor/workflows/CI/badge.svg
:target: https://github.com/spacetelescope/stsynphot_refactor/actions
.. image:: https://github.com/spacetelescope/stsynphot_refactor/actions/workflows/ci_workflows.yml/badge.svg?branch=master
:target: https://github.com/spacetelescope/stsynphot_refactor/actions/workflows/ci_workflows.yml
:alt: Github Actions CI Status

.. image:: https://codecov.io/gh/spacetelescope/stsynphot_refactor/branch/master/graph/badge.svg
Expand Down

0 comments on commit e7e1629

Please sign in to comment.