Skip to content

Commit 87b19db

Browse files
committed
chore: create release for CD action
1 parent c979674 commit 87b19db

File tree

3 files changed

+27
-5
lines changed

3 files changed

+27
-5
lines changed

.github/workflows/publish.yml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,32 @@ name: Publish to PyPI
22
on:
33
push:
44
tags:
5-
- "v*.*.*"
5+
- "*.*.*"
66
jobs:
77
build:
88
runs-on: ubuntu-latest
99
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
1219
uses: JRubics/poetry-publish@v2.0
1320
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 }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ cp-hw/
66
.venv/
77
poetry.lock
88

9+
# build files
10+
dist/
11+
912
# log files
1013
*.log
1114

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "cpGrader"
3-
version = "0.1.0"
3+
version = "0.1.2"
44
description = "A Python Package to Grade Programming Assignments Automatically."
55
authors = ["ryanlinjui <ryanlinjui@gmail.com>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)