Skip to content

Install rye as part of the release pipeline #4

Install rye as part of the release pipeline

Install rye as part of the release pipeline #4

Workflow file for this run

name: 🍦 Create Pre-Release
on:
pull_request:
branches:
- develop
types:
- closed
permissions:
contents: write
checks: write
pull-requests: write
jobs:
release:
if: ${{ github.event.pull_request.merged }}
name: 🏗️ Build package and publish to pypi
runs-on: ubuntu-latest
concurrency: release
permissions:
id-token: write
environment:
name: pypi
url: https://pypi.org/p/nicemldashboard
steps:
- name: ⬇️ Checkout repository
uses: actions/checkout@v3
with:
ref: 'develop'
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: 🐍Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: 🔨Install rye
uses: eifinger/setup-rye@v4
with:
enable-cache: true
- name: 🚀 Python Semantic Release
id: release
uses: python-semantic-release/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: 🐍 Publish package distributions to PyPI
uses: pypa/[email protected]
if: steps.release.outputs.released == 'true'
- name: 🐙 Publish package distributions to GitHub Releases
uses: python-semantic-release/[email protected]
if: steps.release.outputs.released == 'true'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}