Skip to content

Commit

Permalink
Merge pull request #3 from trimesh/release/tag
Browse files Browse the repository at this point in the history
Release: Tag
  • Loading branch information
mikedh authored Apr 9, 2024
2 parents e57d663 + 6c3fe51 commit 30e1110
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,28 @@ jobs:
path: dist
- name: Publish
uses: pypa/[email protected]

release:
permissions:
contents: write # for actions/create-release
name: Create GitHub Release
needs: [build_wheels]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Tag Version
id: set_tag
run: |
export VER=$(python -c "print(next(eval(L.split('=')[-1]) for L in open('pyproject.toml') if L.startswith('version ')))")
echo "::set-output name=tag_name::${VER}"
- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.set_tag.outputs.tag_name }}
release_name: Release ${{ steps.set_tag.outputs.tag_name }}
draft: false
prerelease: false
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ requires = ["setuptools >= 61.0", "wheel"]

[project]
name = "openctm"
version = "0.0.4"
version = "0.0.5"
requires-python = ">=3.7"
authors = [{name = "Michael Dawson-Haggerty", email = "[email protected]"}]
license = {file = "LICENSE.md"}
Expand All @@ -25,6 +25,8 @@ classifiers = [
]
urls = {Homepage = "https://github.com/trimesh/openctm"}

dependencies = ["numpy"]

[project.readme]
file = "README.md"
content-type = "text/markdown"
Expand Down

0 comments on commit 30e1110

Please sign in to comment.