Skip to content

Commit

Permalink
Merge pull request #31 from radaron/add_git_tagging_to_workflow
Browse files Browse the repository at this point in the history
Add git tagging to workflow
  • Loading branch information
radaron authored Nov 24, 2023
2 parents 26a40bd + c5e0d5b commit f736c3f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,18 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Build and upload package
run: |
python -m pip install --upgrade twine build
python -m build
python -m twine upload dist/*
make git-tag
git push --tags
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,9 @@ build:
$(ACTIVATE) && pip install --upgrade build
$(ACTIVATE) && python -m build

git-tag:
tag=v$(grep 'version' pyproject.toml | cut -d '"' -f2)
git tag ${tag}

clean:
rm -rf .venv
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "ncoreparser"
version = "1.9.0"
version = "1.9.1"
description = "Package to download from ncore.pro"
authors = [
{ name="Aron Radics", email="aron.radics.jozsef@gmail.com" }
Expand Down

0 comments on commit f736c3f

Please sign in to comment.