Skip to content

Commit

Permalink
Merge pull request #153 from mobiusml/release_0.2.2
Browse files Browse the repository at this point in the history
Prerelease Preparations and On Release Trigger for GitHub actions
  • Loading branch information
movchan74 authored Aug 8, 2024
2 parents 6c0474c + b07515e commit 246c060
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Publish Python Package

on:
push:
branches: [main]
release:
types: [published]
workflow_dispatch:
inputs:
publish_target:
Expand Down Expand Up @@ -39,15 +43,15 @@ jobs:
run: poetry build

- name: Publish to PyPI
if: ${{ github.event.inputs.publish_target == 'pypi' }}
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish_target == 'pypi')
env:
PYPI_USERNAME: "__token__"
PYPI_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
poetry publish --username $PYPI_USERNAME --password $PYPI_PASSWORD
- name: Publish to Test PyPI
if: ${{ github.event.inputs.publish_target == 'testpypi' }}
if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish_target == 'testpypi')
env:
PYPI_USERNAME: "__token__"
PYPI_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/publish_docs.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Publish Docs

on:
release:
types: [published]
workflow_dispatch:

jobs:
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 = "aana"
version = "0.2.1"
version = "0.2.2"
description = "Multimodal SDK"
authors = ["Mobius Labs GmbH <dev@mobiuslabs.com>"]
homepage = "https://www.mobiuslabs.com"
Expand Down

0 comments on commit 246c060

Please sign in to comment.