Skip to content

Commit 62d8249

Browse files
matentznCopilot
andauthored
Update PyPI publish workflow for prereleases (#494)
Workflow now triggers on published and prereleased events, and adds 'skip-existing' to PyPI publish step. Improves handling of pre-release publishing and artifact management. Resolves #490 - [ ] `docs/` have been added/updated if necessary - [ ] `make test` has been run locally - [ ] tests have been added/updated (if applicable) - [X] [CHANGELOG.md](https://github.com/mapping-commons/sssom/blob/master/CHANGELOG.md) has been updated. --------- Co-authored-by: Copilot <[email protected]>
1 parent c1dd790 commit 62d8249

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/pypi-publish.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: Publish Python Package
33

44
on:
55
release:
6-
# Trigger the workflow only for real releases but not for draft releases
7-
types: [created]
6+
# Run when a release is published or a prerelease is published (not on draft creation)
7+
types: [published, prereleased]
88

99
jobs:
1010
build:
@@ -54,7 +54,7 @@ jobs:
5454
path: dist
5555

5656
- name: Publish package 📦 to PyPI
57-
if: github.event_name == 'release'
5857
uses: pypa/[email protected]
5958
with:
60-
verbose: true
59+
verbose: true
60+
skip-existing: true

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
- Add `curation_rule` and `curation_rule_text` to the `MappingSet` class and made propagatable ([issue](https://github.com/mapping-commons/sssom/issues/464)).
1616
- Add `cardinality_scope` slot ([issue](https://github.com/mapping-commons/sssom/issues/467)).
1717
- Add new value `0:0` to the `mapping_cardinality_enum` ([issue](https://github.com/mapping-commons/sssom/issues/477)).
18+
- Development snapshots of SSSOM schema can now be released using GitHub's pre-release feature ([issue](https://github.com/mapping-commons/sssom/issues/490))
1819

1920
## SSSOM version 1.0.0
2021

0 commit comments

Comments
 (0)