-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
dfe748a
commit cfd66e7
Showing
5 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.