Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed Aug 1, 2024
1 parent 0cce795 commit b2f368d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish package to PyPI

on:
release:
types: [published]
types: [ published ]

jobs:

Expand Down Expand Up @@ -46,10 +46,6 @@ jobs:
gh release download
"${{ github.ref_name }}"
--dir dist/
# --pattern '*.tar.gz'
# --pattern '*.whl'
# --pattern '*.intoto.jsonl'
# --pattern 'artifact/*'
- name: "Publish dists to PyPI"
uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0 # v1.9.0
19 changes: 11 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,17 @@ jobs:
steps:
- uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7

- name: create release
- name: Create a GitHub release
run: >
gh release create --draft
"${{ github.ref_name }}"
--repo "${{ github.repository }}"
--title "${{ github.ref_name }}"
--verify-tag
--generate-notes
dist/*
gh release create
--repo "${{ github.repository }}"
--title "${{ github.ref_name }}"
--notes-from-file CHANGELOG.md
--draft
--latest
--verify-tag
--generate-notes
"${{ github.ref_name }}"
dist/*
env:
GH_TOKEN: ${{ github.token }}

0 comments on commit b2f368d

Please sign in to comment.