Skip to content

Commit

Permalink
Change PyPI deploy to rely on "trusted publishers" (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
oprypin authored Sep 16, 2023
1 parent 42898bd commit 0ea85e5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 27 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/deploy-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Deploy release
on:
push:
tags:
- '*'
jobs:
pypi:
permissions:
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: pip install -U build
- name: Build package
run: python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
27 changes: 0 additions & 27 deletions .github/workflows/publish.yml

This file was deleted.

0 comments on commit 0ea85e5

Please sign in to comment.