Skip to content

Commit

Permalink
Merge pull request #28 from guanhuaw/feature/bump4
Browse files Browse the repository at this point in the history
fix semantic release
  • Loading branch information
guanhuaw authored Aug 4, 2024
2 parents 7d9da72 + a001381 commit ffa404a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 44 deletions.
51 changes: 9 additions & 42 deletions .github/workflows/python-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,54 +4,21 @@ on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:

jobs:
release:
name: Semantic Release
runs-on: ubuntu-latest
concurrency: release
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
contents: write

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
fetch-tags: true

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install python-semantic-release build
- name: Install project dependencies
run: |
pip install -e .
# or if you use poetry:
# pip install poetry && poetry install
- name: Semantic Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name github-actions
git config user.email github-actions@github.com
semantic-release publish
- name: Python Semantic Release
uses: python-semantic-release/python-semantic-release
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Python Semantic Release
uses: python-semantic-release/python-semantic-release@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
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 = "setuptools.build_meta"

[project]
name = "MIRTorch"
version = "0.1.0"
version = "0.1.2"
authors = [{ name = "Guanhua Wang", email = "guanhuaw@umich.edu" }]
description = "a PyTorch-based image reconstruction toolbox"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup

__version__ = "0.1.0"
__version__ = "0.1.2"

setup(
name="mirtorch",
Expand Down

0 comments on commit ffa404a

Please sign in to comment.