-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c979674
commit 8f9373f
Showing
4 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,32 @@ name: Publish to PyPI | |
on: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
- '*' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build and publish to pypi | ||
- name: Checkout Code Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Build and Publish to PyPI | ||
uses: JRubics/[email protected] | ||
with: | ||
pypi_token: ${{ secrets.PIPY_API_TOKEN }} | ||
pypi_token: ${{ secrets.PIPY_API_TOKEN }} | ||
poetry_publish_options: "--skip-existing" | ||
|
||
- name: Create Release | ||
uses: actions/create-release@v1 | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: ${{ github.ref }} | ||
body: | | ||
This is a release for the version ${{ github.ref }}. | ||
PyPI package: https://pypi.org/project/${{ github.repository }}/${{ github.ref }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,9 @@ cp-hw/ | |
.venv/ | ||
poetry.lock | ||
|
||
# build files | ||
dist/ | ||
|
||
# log files | ||
*.log | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "cpGrader" | ||
version = "0.1.0" | ||
version = "0.1.2" | ||
description = "A Python Package to Grade Programming Assignments Automatically." | ||
authors = ["ryanlinjui <[email protected]>"] | ||
readme = "README.md" | ||
|