Skip to content

Commit

Permalink
Rework publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sasha0552 authored Sep 3, 2024
1 parent 4486cb8 commit 826ec07
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 39 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish Python Package

on:
release:
types:
- published

jobs:
publish:
runs-on: ubuntu-latest

environment:
name: pypi
url: https://pypi.org/project/nvidia-pstate

permissions:
id-token: write

steps:
- name: Checkout
uses: actions/checkout@v4

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

- name: Install dependencies
run: pip install build

- name: Build package
run: python -m build

- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
39 changes: 0 additions & 39 deletions .github/workflows/python-publish.yml

This file was deleted.

0 comments on commit 826ec07

Please sign in to comment.