Skip to content

Commit

Permalink
release ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjaynagi committed Jan 31, 2024
1 parent dd9f34f commit 3f53eda
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: release
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3

- name: Install poetry
run: pipx install poetry==1.7.1

- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'poetry'

- name: Configure poetry
run: |
poetry self add "poetry-dynamic-versioning[plugin]"
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
- name: Build package
run: poetry build

- name: Publish to PyPI
run: poetry publish
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
[tool.poetry]
name = "AnoPrimer"
version = "0.7.0"
version = "1.0.0"
description = "A package to design primers in Anopheles gambiae whilst considering genetic variation with malariagen_data"
readme = "README.md"
documentation = "https://sanjaynagi.github.io/anoprimer/latest/"
repository = "https://github.com/sanjaynagi/anoprimer"
authors = [
"Sanjay Nagi <sanjay.nagi@lstmed.ac.uk>",
]
Expand Down

0 comments on commit 3f53eda

Please sign in to comment.