Skip to content

Commit

Permalink
pypi: use trusted publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
pschmitt committed Aug 20, 2024
1 parent ee42b59 commit 8309dd1
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 29 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Python Package

on:
release:
types: [created]
push:
tags:
- '*'

jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/pyrundeck
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'

- name: python build
run: |
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade build
python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
29 changes: 0 additions & 29 deletions .github/workflows/release.yaml

This file was deleted.

0 comments on commit 8309dd1

Please sign in to comment.