Skip to content

Commit

Permalink
chore: init python package CD action
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanlinjui committed Aug 8, 2024
1 parent 553fd77 commit ae3a427
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Publish to PyPI
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build and publish to pypi
uses: JRubics/poetry-publish@v2.0
with:
pypi_token: ${{ secrets.PIPY_API_TOKEN }}
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = "0.1.0"
description = "A Python Package to Grade Programming Assignments Automatically."
authors = ["ryanlinjui <ryanlinjui@gmail.com>"]
readme = "README.md"
packages = [{include = "cpGrader", from = "src"}]

[tool.poetry.dependencies]
python = "^3.8"
Expand Down

0 comments on commit ae3a427

Please sign in to comment.