Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Build

on:
push:
tags:
- 'v*.*.*'
workflow_dispatch:
inputs:
version:
type: string
description: "Version name"
required: true


jobs:
Expand Down Expand Up @@ -41,13 +44,16 @@ jobs:
- name: Deploy to test-pypi
id: "publish-to-test-pypi"
run: |
poetry version ${{ github.event.inputs.version }}
poetry config repositories.test "https://test.pypi.org/legacy/"
poetry publish --skip-existing --build --repository test --username '__token__' --password ${{ secrets.TEST_PYPI_PASSWORD }}
poetry publish --build --repository test --username '__token__' --password ${{ secrets.TEST_PYPI_PASSWORD }}

- name: Deploy to pypi
id: "publish-to-pypi"
if: steps.publish-to-test-pypi.outcome == 'success'
run: poetry publish --skip-existing --username '__token__' --password ${{ secrets.PYPI_PASSWORD }}
run: |
poetry version ${{ github.event.inputs.version }}
poetry publish --skip-existing --username '__token__' --password ${{ secrets.PYPI_PASSWORD }}

- name: Store the distribution packages
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "patchwork-cli"
version = "0.0.23"
version = "0.0.0a1"
description = ""
authors = ["patched.codes"]
license = "AGPL"
Expand Down