Skip to content

Commit

Permalink
ci: only publish on release
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-murray committed Jan 10, 2023
1 parent d28a5b9 commit be74dba
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ categories:
labels:
- "dependencies"
- "build"
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
autolabeler:
- label: 'documentation'
files:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: Publish Python distributions to PyPI

on: push
on:
release:
types: [published]

jobs:
build-n-publish:
name: Build and publish to PyPI
name: Make Release on PyPI and Github
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Aaron Parsons

-----------------------------------------------------------------------------

# Package Info for Developers
## Package Info for Developers

The miriad source code (`aipy/miriad/mirsrc`) was included from MIRIAD 4.0.5.
To update, download a MIRIAD distribution and copy `$MIR/src/subs/*` and
Expand All @@ -66,3 +66,11 @@ To update, download a MIRIAD distribution and copy `$MIR/src/subs/*` and
Healpix source code (`aipy/healpix/cxx`) was included from Healpix 2.01. To
update, download a HEALPix distribution and copy `src/cxx` into
`aipy/healpix`.

## Making Releases (for Maintainers)

To make a release of `aipy` (both on Github and PyPI), head to the most current
[Draft Release](https://github.com/HERA-Team/aipy/releases) and note the *suggested*
release version. Contact the maintainers with your intention to make a release either
to that version (or, if appropriate, to a different version), and publish the release
via the Github UI. All done!

0 comments on commit be74dba

Please sign in to comment.