Skip to content

Commit

Permalink
Merge pull request #91 from not522/publish-workflow
Browse files Browse the repository at this point in the history
Update publish CI
  • Loading branch information
not522 authored Sep 11, 2023
2 parents a61dbfb + 66b9a8b commit 704addb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ on:
jobs:
build-n-publish:
name: Build and publish Python distributions to PyPI and TestPyPI
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.7
uses: actions/setup-python@v1
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: 3.8
- name: Install pypa/build
run: >-
python -m
Expand All @@ -29,11 +29,11 @@ jobs:
--outdir dist/
.
- name: Publish distribution to Test PyPI
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
repository-url: https://test.pypi.org/legacy/
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
11 changes: 11 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
import os
import setuptools


def get_long_description() -> str:
readme = os.path.join(os.path.dirname(__file__), "README.md")
with open(readme) as f:
return f.read()


setuptools.setup(
name='rime',
version='3.0.0.dev',
description="An automation tool for programming contest organizers",
long_description=get_long_description(),
long_description_content_type="text/markdown",
scripts=['bin/rime', 'bin/rime_init'],
packages=['rime', 'rime.basic', 'rime.basic.targets', 'rime.basic.util',
'rime.core', 'rime.plugins', 'rime.plugins.judge_system',
Expand Down

0 comments on commit 704addb

Please sign in to comment.