Skip to content

Commit fa62192

Browse files
committed
No issue: Update release workflow
1 parent b62aee2 commit fa62192

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

.github/ISSUE_TEMPLATE/release.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
22
name: Release
3-
about: Create a new release of cassis
3+
about: Create a new release of pycaprio
44

55
---
66

77
**Checklist**
88

99
- [ ] Make sure all issues for the milestone are completed, otherwise move them
1010
- [ ] Checkout the `main` branch
11-
- [ ] Bump the version in `cassis/__version__.py` to a stable one, e.g. `__version__ = "0.6.0"`, commit and push
11+
- [ ] Bump the version in `pyproject.toml` to a stable one, e.g. `version = "0.4.0"`, commit and push
1212
- [ ] Check and wait that the build completed.
1313
- [ ] Create a tag for that version and push it
1414
- [ ] Wait for the build and Pypi to show the new version
1515
- [ ] Bump the version to the next development version, commit and push that.
16-
- [ ] Convert the tag to a release on Github, write release note based on issues in the respective milestone
16+
- [ ] Convert the tag to a release on GitHub, write release note based on issues in the respective milestone
1717
- [ ] Create a new milestone

.github/workflows/publish_to_pypi.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,14 @@ on:
55
tags:
66
- '*'
77

8+
permissions:
9+
contents: read
10+
id-token: write
11+
812
jobs:
9-
build:
13+
release:
1014
runs-on: ubuntu-latest
15+
environment: release
1116
steps:
1217
- uses: actions/checkout@v4
1318
- uses: actions/setup-python@v5
@@ -26,12 +31,7 @@ jobs:
2631
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
2732
uses: pypa/gh-action-pypi-publish@release/v1
2833
with:
29-
user: __token__
30-
password: ${{ secrets.test_pypi_password }}
3134
repository-url: https://test.pypi.org/legacy/
3235
- name: Publish package to PyPI
3336
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
3437
uses: pypa/gh-action-pypi-publish@release/v1
35-
with:
36-
user: __token__
37-
password: ${{ secrets.pypi_password }}

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
name = "pycaprio"
33
version = "0.4.0-dev"
44
readme = "README.md"
5-
# homepage = "https://github.com/inception-project/pycaprio"
65
repository = "https://github.com/inception-project/pycaprio"
76
documentation = "https://pycaprio.readthedocs.io"
87
description = "Python client for the INCEpTION annotation tool remote API"
@@ -34,7 +33,7 @@ bcrypt = "^4.3.0"
3433

3534
[tool.ruff]
3635
line-length = 120
37-
target-version = "py38"
36+
target-version = "py39"
3837

3938
[build-system]
4039
requires = ["poetry_core>=1.0.0"]

0 commit comments

Comments
 (0)