Skip to content

Commit e7e1629

Browse files
committed
Prepping for v1.3.0 release
1 parent cfe2546 commit e7e1629

3 files changed

Lines changed: 10 additions & 12 deletions

File tree

.github/workflows/publish-to-pypi.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Release
22

33
on:
4-
pull_request:
4+
workflow_dispatch:
55
release:
66
types: [released]
77

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

1823
steps:
1924
- uses: actions/checkout@v4
@@ -22,7 +27,7 @@ jobs:
2227

2328
- uses: actions/setup-python@v4
2429
with:
25-
python-version: '3.10'
30+
python-version: '3.x'
2631

2732
- name: Install python-build and twine
2833
run: python -m pip install build "twine>=3.3"
@@ -43,13 +48,6 @@ jobs:
4348
testenv/bin/pip install pytest-astropy ci-watson stsynphot_refactor/dist/*.whl
4449
testenv/bin/python -c "import stsynphot; stsynphot.test()"
4550
46-
# FOR DEBUGGING ONLY: repository_url (TestPyPI) and verbose;
47-
# Use appropriate token if debugging with TestPyPI
4851
- name: Publish distribution 📦 to PyPI
4952
if: github.event_name == 'release'
5053
uses: pypa/gh-action-pypi-publish@release/v1
51-
with:
52-
user: __token__
53-
password: ${{ secrets.PYPI_TOKEN }}
54-
#repository_url: https://test.pypi.org/legacy/
55-
#verbose: true

CHANGES.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1.3.0 (unreleased)
1+
1.3.0 (2023-11-28)
22
==================
33

44
- Compatibility with ``numpy`` 2.0. [#181]

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ stsynphot
1313
:target: https://stsynphot.readthedocs.io/en/latest/?badge=latest
1414
:alt: Documentation Status
1515

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

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

0 commit comments

Comments
 (0)