mirror of
https://github.com/beetbox/beets.git
synced 2026-01-03 14:32:55 +01:00
Make make-github-release job dependent on publish-to-pypi
This commit is contained in:
parent
8b52f3f9a5
commit
190198bfa6
1 changed files with 19 additions and 19 deletions
38
.github/workflows/make_release.yaml
vendored
38
.github/workflows/make_release.yaml
vendored
|
|
@ -67,10 +67,28 @@ jobs:
|
|||
name: python-package-distributions
|
||||
path: dist/
|
||||
|
||||
publish-to-pypi:
|
||||
name: Publish distribution 📦 to PyPI
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
environment:
|
||||
name: pypi
|
||||
url: https://pypi.org/p/beets
|
||||
permissions:
|
||||
id-token: write
|
||||
steps:
|
||||
- name: Download all the dists
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: python-package-distributions
|
||||
path: dist/
|
||||
- name: Publish distribution 📦 to PyPI
|
||||
uses: pypa/gh-action-pypi-publish@release/v1
|
||||
|
||||
make-github-release:
|
||||
name: Create GitHub release
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
needs: publish-to-pypi
|
||||
env:
|
||||
CHANGELOG: ${{ needs.build.outputs.changelog }}
|
||||
steps:
|
||||
|
|
@ -103,21 +121,3 @@ jobs:
|
|||
access-token: ${{ secrets.MASTODON_ACCESS_TOKEN }}
|
||||
url: ${{ secrets.MASTODON_URL }}
|
||||
message: "Version ${{ steps.tag_version.outputs.new_tag }} of beets has been released! Check out all of the new changes at ${{ steps.create_release.outputs.html_url }}"
|
||||
|
||||
publish-to-pypi:
|
||||
name: Publish distribution 📦 to PyPI
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
environment:
|
||||
name: pypi
|
||||
url: https://pypi.org/p/beets
|
||||
permissions:
|
||||
id-token: write
|
||||
steps:
|
||||
- name: Download all the dists
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: python-package-distributions
|
||||
path: dist/
|
||||
- name: Publish distribution 📦 to PyPI
|
||||
uses: pypa/gh-action-pypi-publish@release/v1
|
||||
|
|
|
|||
Loading…
Reference in a new issue