Skip to content

Commit

Permalink
Update deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kapi2289 authored Apr 9, 2024
1 parent d681521 commit 4db7597
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: Publish Python Package

permissions:
id-token: write

on:
release:
types: [created]
Expand Down Expand Up @@ -37,6 +34,9 @@ jobs:
environment:
name: pypi
url: https://pypi.org/p/vulcan-api
permissions:
id-token: write
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -62,13 +62,11 @@ jobs:
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
- name: Add GitHub release assets
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: |
dist/*.whl
dist/*.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload workflow artifact
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 4db7597

Please sign in to comment.