Skip to content

Commit

Permalink
added ci
Browse files Browse the repository at this point in the history
  • Loading branch information
amirdaaee committed Jan 3, 2024
1 parent 364307a commit 2f450bb
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish Python Package

on:
push:
tags:
- 'v*.*.*'

jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Versioning
env:
CODE_VERSION: ${{ github.ref_name#v }}
run: poetry version $CODE_VERSION
# TODO: tests
- name: Publish
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
poetry config pypi-token.pypi $PYPI_TOKEN
poetry publish --build
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ name = "crossense"
version = "0.1.0"
description = ""
authors = ["zeenome longevity <dev@zeenome.com>"]
description = "some helpers to train or inference scikit-learn models"
readme = "README.md"
license = "MIT"
authors = [
"Amir Daaee <amir@zeenome.com>",
]
repository = "https://github.com/Zeeonome/crossense"

[tool.poetry.dependencies]
python = "^3.10"
Expand Down

0 comments on commit 2f450bb

Please sign in to comment.