Skip to content

Commit

Permalink
[#80] Publish hyperon-das-commons package to pipy (#81)
Browse files Browse the repository at this point in the history
* ci: publish hyperon-das-commons to pypi

* chores: change folder name and readme.md added
  • Loading branch information
levisingularity authored Aug 16, 2024
1 parent dfe748a commit cfd66e7
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/publish-hyperon-das-commons.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
name: Publish Hyperon DAS Commons to Pypi

on:
workflow_dispatch:
inputs:
version:
description: "Version"
required: true

jobs:
tag:
if: github.ref == 'refs/heads/master'
uses: singnet/das/.github/workflows/run-semver.yml@master
with:
version: ${{ github.event.inputs.version }}
version-strategy: bump-version-from-variable-value
job-image-namespace: trueagi
job-image-version-semver: semantic-versioning
main-branch: master
version-tag-regex-pattern: /^\d+\.\d+\.\d+$/
version-require-confirmation: "true"
title: New version of hyperon-das-commons
deliverable: Library in PyPI named hyperon-das-commons
secrets: inherit

publish:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
defaults:
run:
working-directory: ./python
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ^3.10

- name: Install Poetry
run: |
pip install poetry
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
- name: Build and Publishing library version in PyPI
run: |
poetry version ${{ github.event.inputs.version }}
poetry build
poetry publish --username __token__ --password ${{ secrets.PYPI_API_TOKEN }}
1 change: 1 addition & 0 deletions python/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Hyperon DAS Commons
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit cfd66e7

Please sign in to comment.