From 74b25f83bee90a36cc47bf078bd649b29d28e56d Mon Sep 17 00:00:00 2001 From: andreasxp <28830446+andreasxp@users.noreply.github.com> Date: Sun, 31 Mar 2024 14:18:42 +0300 Subject: [PATCH] Fix release script --- .github/workflows/release.yml | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bc8cbfb..6bbb224 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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