Skip to content

Commit

Permalink
Fix release script
Browse files Browse the repository at this point in the history
  • Loading branch information
bindreams committed Mar 31, 2024
1 parent 8faa3d2 commit 74b25f8
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ on:
jobs:
package:
runs-on: ubuntu-latest
environment:
name: release
url: https://pypi.org/p/varformat
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
Expand All @@ -20,22 +25,5 @@ jobs:
run: |
pip install -r scripts/package-requirements.txt
python scripts/package.py
- name: Save distribution as an artifact
uses: actions/upload-artifact@v4
with:
name: package
path: dist
publish:
runs-on: ubuntu-latest
environment:
name: release
url: https://pypi.org/p/varformat
permissions:
id-token: write
steps:
- name: Restore distribution
uses: actions/download-artifact@v4
with:
name: package
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 74b25f8

Please sign in to comment.