Skip to content

Commit

Permalink
Update GitHub actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronald Maj committed Jan 4, 2024
1 parent aff7384 commit 8132600
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ jobs:
python -m pip install --upgrade pip
pip install build
pip install wheel
- name: Extract tag name
id: tag
run: echo ::set-output name=TAG_NAME::$(echo $GITHUB_REF | cut -d / -f 3)
- name: Update version in setup.py
run: >-
sed -i "s/{{VERSION_PLACEHOLDER}}/${{ steps.tag.outputs.TAG_NAME }}/g" setup.py
- name: Build a binary wheel
run: >-
python setup.py sdist bdist_wheel
- name: Build package
run: python -m build
- name: Publish package
Expand Down
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import setuptools
import versioneer
from pathlib import Path

# Read the contents of README file
Expand All @@ -9,8 +8,7 @@
setuptools.setup(
include_package_data=True,
name="gnssanalysis",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
version="{{VERSION_PLACEHOLDER}}",
description="basic python module for gnss analysis",
author="Geoscience Australia",
author_email="[email protected]",
Expand Down

0 comments on commit 8132600

Please sign in to comment.