Skip to content

Commit ae3a427

Browse files
committed
chore: init python package CD action
1 parent 553fd77 commit ae3a427

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.github/workflows/publish.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Publish to PyPI
2+
on:
3+
push:
4+
tags:
5+
- "v*.*.*"
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Build and publish to pypi
12+
uses: JRubics/poetry-publish@v2.0
13+
with:
14+
pypi_token: ${{ secrets.PIPY_API_TOKEN }}

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ version = "0.1.0"
44
description = "A Python Package to Grade Programming Assignments Automatically."
55
authors = ["ryanlinjui <ryanlinjui@gmail.com>"]
66
readme = "README.md"
7+
packages = [{include = "cpGrader", from = "src"}]
78

89
[tool.poetry.dependencies]
910
python = "^3.8"

0 commit comments

Comments
 (0)