File tree Expand file tree Collapse file tree 3 files changed +27
-5
lines changed Expand file tree Collapse file tree 3 files changed +27
-5
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,32 @@ name: Publish to PyPI
2
2
on :
3
3
push :
4
4
tags :
5
- - " v *.*.*"
5
+ - " *.*.*"
6
6
jobs :
7
7
build :
8
8
runs-on : ubuntu-latest
9
9
steps :
10
- - uses : actions/checkout@v4
11
- - name : Build and publish to pypi
10
+ - name : Checkout Code Repository
11
+ uses : actions/checkout@v4
12
+
13
+ - name : Set up Python
14
+ uses : actions/setup-python@v5
15
+ with :
16
+ python-version : ' 3.10'
17
+
18
+ - name : Build and Publish to PyPI
12
19
uses : JRubics/poetry-publish@v2.0
13
20
with :
14
- pypi_token : ${{ secrets.PIPY_API_TOKEN }}
21
+ pypi_token : ${{ secrets.PIPY_API_TOKEN }}
22
+
23
+ - name : Create Release
24
+ id : create_release
25
+ uses : actions/create-release@v1
26
+ env :
27
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
28
+ with :
29
+ tag_name : ${{ github.ref }}
30
+ release_name : ${{ github.ref }}
31
+ body : |
32
+ This is a release for the version ${{ github.ref }}.
33
+ PyPI package: https://pypi.org/project/${{ github.repository }}/${{ github.ref }}
Original file line number Diff line number Diff line change 6
6
.venv /
7
7
poetry.lock
8
8
9
+ # build files
10
+ dist /
11
+
9
12
# log files
10
13
* .log
11
14
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " cpGrader"
3
- version = " 0.1.0 "
3
+ version = " 0.1.2 "
4
4
description = " A Python Package to Grade Programming Assignments Automatically."
5
5
authors = [" ryanlinjui <ryanlinjui@gmail.com>" ]
6
6
readme = " README.md"
You can’t perform that action at this time.
0 commit comments