Skip to content

Commit

Permalink
#12 Use OIDC publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
danial-k committed Apr 30, 2024
1 parent 6eb109a commit 9276e67
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ on:
push:
tags: [ '*.*.*' ]

env:
PYTHON_REPOSITORY_USERNAME: ${{ secrets.PYTHON_REPOSITORY_USERNAME }}
PYTHON_REPOSITORY_PASSWORD: ${{ secrets.PYTHON_REPOSITORY_PASSWORD }}

jobs:
publish:
runs-on: ubuntu-latest
Expand All @@ -16,17 +12,17 @@ jobs:
contents: read
steps:
# Checkout project code
- uses: actions/checkout@v2
- uses: actions/checkout@v3

# Set up python environment
- uses: actions/setup-python@v2
- uses: actions/setup-python@v3
with:
python-version: '3.x'

# Install python poetry and dependencies for use in later steps
- name: Install Poetry
run: ./scripts/poetry.sh
# Re-run validation and build
- name: Validate
run: ./scripts/validate.sh

# Change working directory and run build script
- name: Publish
run: ./scripts/publish.sh
# Get pypi credentials and publish
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 9276e67

Please sign in to comment.