Skip to content

Commit

Permalink
updating release CI
Browse files Browse the repository at this point in the history
  • Loading branch information
d-krupke committed Jul 8, 2023
1 parent f7468e5 commit a8667fe
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 26 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/publish-to-pypi.yml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release

on:
release:
types: [published]

jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/slurminade
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
# retrieve your distributions here
- uses: actions/checkout@master
- uses: actions/setup-python@v4
- name: Build SDist and wheel
run: pipx run build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit a8667fe

Please sign in to comment.