Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Uphold okp4 actions #59

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- name: Set up context
id: project_context
uses: FranzDiebold/github-env-vars-action@v2.3.1
uses: FranzDiebold/github-env-vars-action@v2.7.0

- name: Extract metadata (tags, labels) for Docker
id: docker_metadata
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
id: project_context
uses: FranzDiebold/[email protected]

- uses: actions/setup-python@v3
- uses: actions/setup-python@v4
with:
python-version: 3.9

Expand All @@ -99,10 +99,16 @@ jobs:
with:
poetry-version: 1.3.1

- name: Publish package
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's some code duplication around here 😉

working-directory: ${{env.WORK_DIR}}
- name: Publish package
working-directory: ${{env.WORK_DIR}}
run: |
poetry install
poetry build
echo "🚀 Publishing pypi package"
poetry publish -u __token__ -p "${{ secrets.PYPI_API_TOKEN }}"
poetry install
poetry build
echo "🚀 Publishing pypi package"
poetry publish -u __token__ -p "${{ secrets.PYPI_API_TOKEN }}"
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Check out repository
uses: actions/checkout@v3

- uses: actions/setup-python@v3
- uses: actions/setup-python@v4
with:
python-version: 3.9

Expand Down