Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test publish #11

Merged
merged 1 commit into from
Jan 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 22 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,27 @@ on:
tags:
- "v*.*.*"
jobs:
build:
runs-on: ubuntu-latest
build-and-publish:
steps:
- uses: actions/checkout@v2
- name: Build and publish to pypi
uses: JRubics/poetry-publish@v1.16
#-----------------------------------------------
# ----- checkout repo and set-up python -----
#-----------------------------------------------
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/actions-poetry@v2
#------------------------------------
# ----- Install dependencies -----
#------------------------------------
- name: Install dependencies
run: |
poetry install
- name: Run tests
run: |
printenv
poetry publish --build --username __token__ --password $PYPI_TOKEN
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}