From 6352e7fea3464cabd6bf79922d56c160a501667c Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Wed, 8 Dec 2021 13:45:55 -0800 Subject: [PATCH] python release Signed-off-by: Jess Frazelle --- .github/workflows/make-release.yml | 31 ++++++++++++++++++++++++++++++ kittycad/pyproject.toml | 4 ++-- 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/make-release.yml diff --git a/.github/workflows/make-release.yml b/.github/workflows/make-release.yml new file mode 100644 index 000000000..de5a7b3d5 --- /dev/null +++ b/.github/workflows/make-release.yml @@ -0,0 +1,31 @@ +on: + push: + tags: + - v* +name: make-release +jobs: + makerelease: + name: make-release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: '3.x' + # Installation instructions are from: https://python-poetry.org/docs/ + - name: Install poetry + shell: bash + run: | + curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - + - name: Do the release + shell: bash + run: | + cd kittycad + poetry publish --build \ + --username ${{secrets.PYPI_USERNAME}} \ + --password ${{secrets.PYPI_SECRET}} + + # TODO: generate a nice little doc for the release text like we do for the + # cli repo. + - name: Create a Release + uses: softprops/action-gh-release@v1 diff --git a/kittycad/pyproject.toml b/kittycad/pyproject.toml index 9a563db94..46bd46689 100644 --- a/kittycad/pyproject.toml +++ b/kittycad/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "kittycad" -version = "0.1.0" +version = "0.0.1" description = "A client library for accessing KittyCAD" authors = [] @@ -36,4 +36,4 @@ exclude = ''' [tool.isort] line_length = 120 -profile = "black" \ No newline at end of file +profile = "black"