Skip to content

Commit

Permalink
Merge pull request #4 from thehyve/action-test
Browse files Browse the repository at this point in the history
PyPI publish action
  • Loading branch information
Spayralbe authored Apr 15, 2024
2 parents d7cb7c6 + 8b74b1d commit 7ae313a
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: publish to PyPI 🐍

on: release

jobs:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
# Specifying a GitHub environment is optional, but strongly encouraged
environment: publish_to_pypi
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install Poetry
uses: snok/install-poetry@v1
- name: build package distributions
run: poetry build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Changelog

## v0.1.1
Add PyPI publish action.

## v0.1.0
First release.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "omop-cdm"
version = "0.1.0"
version = "0.1.1"
description = "SQLAlchemy ORM of the OHDSI OMOP CDM"
authors = [
"Spayralbe <[email protected]>",
Expand Down

0 comments on commit 7ae313a

Please sign in to comment.