Skip to content

Commit

Permalink
fix: add publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Mips2648 committed May 12, 2024
1 parent 7a52b63 commit 3ed1bda
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,28 @@ jobs:
# - First Change
# - Second Change
draft: false
prerelease: true
prerelease: true

publish:
needs: [release-on-success]
if: ${{ github.repository == 'Mips2648/jeedom-daemon-py' && needs.release-on-success.outputs.released == 'true' }}
runs-on: ubuntu-latest
# Specifying a GitHub environment is optional, but strongly encouraged
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450

0 comments on commit 3ed1bda

Please sign in to comment.