-
-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Andreas Kanz
committed
Jan 16, 2022
1 parent
ec36836
commit 3d0ad20
Showing
1 changed file
with
29 additions
and
29 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 |
---|---|---|
@@ -1,33 +1,33 @@ | ||
# This workflows will upload a Python Package using Twine when a release is created | ||
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries | ||
# # This workflows will upload a Python Package using Twine when a release is created | ||
# # For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries | ||
|
||
name: Build and publish 🐍 package to PyPI | ||
# name: Build and publish 🐍 package to PyPI | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
# on: | ||
# push: | ||
# tags: | ||
# - "v*" | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
# jobs: | ||
# deploy: | ||
# runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up latest Python Version | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: "3.9.*" | ||
- name: Install Poetry and dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install poetry | ||
poetry config virtualenvs.in-project true | ||
poetry install -v | ||
- name: Build and publish 📦 to PyPI | ||
env: | ||
PUBLISH_TOKEN: ${{ secrets.POETRY_PUBLISH_TOKEN }} | ||
run: | | ||
source .venv/bin/activate | ||
poetry config pypi-token.pypi $PUBLISH_TOKEN | ||
poetry publish --build | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - name: Set up latest Python Version | ||
# uses: actions/setup-python@v1 | ||
# with: | ||
# python-version: "3.9.*" | ||
# - name: Install Poetry and dependencies | ||
# run: | | ||
# python -m pip install --upgrade pip | ||
# python -m pip install poetry | ||
# poetry config virtualenvs.in-project true | ||
# poetry install -v | ||
# - name: Build and publish 📦 to PyPI | ||
# env: | ||
# PUBLISH_TOKEN: ${{ secrets.POETRY_PUBLISH_TOKEN }} | ||
# run: | | ||
# source .venv/bin/activate | ||
# poetry config pypi-token.pypi $PUBLISH_TOKEN | ||
# poetry publish --build |