31
.github/workflows/make-release.yml
vendored
Normal file
31
.github/workflows/make-release.yml
vendored
Normal file
@ -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
|
@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "kittycad"
|
name = "kittycad"
|
||||||
version = "0.1.0"
|
version = "0.0.1"
|
||||||
description = "A client library for accessing KittyCAD"
|
description = "A client library for accessing KittyCAD"
|
||||||
|
|
||||||
authors = []
|
authors = []
|
||||||
@ -36,4 +36,4 @@ exclude = '''
|
|||||||
|
|
||||||
[tool.isort]
|
[tool.isort]
|
||||||
line_length = 120
|
line_length = 120
|
||||||
profile = "black"
|
profile = "black"
|
||||||
|
Reference in New Issue
Block a user