Skip to content

feat: add write chart to exp context #11

feat: add write chart to exp context

feat: add write chart to exp context #11

Workflow file for this run

name: 🍦 Create Pre-Release
on:
pull_request:
branches:
- develop
types:
- closed
permissions:
contents: 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/niceml
steps:
- name: ⬇️ Checkout repository
uses: actions/checkout@v3
with:
ref: 'develop'
fetch-depth: 0
token: ${{ secrets.RELEASE_WORKFLOW }}
- name: 🐍Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: 🔨 Setup poetry
uses: abatilo/[email protected]
with:
poetry-version: "1.7.1"
- name: 🔨Install dependencies
run: |
poetry config virtualenvs.create false
poetry install --no-interaction --no-ansi --with dev
- name: 🚀 Python Semantic Release
id: release
uses: python-semantic-release/[email protected]
with:
github_token: ${{ secrets.RELEASE_WORKFLOW }}
- 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.RELEASE_WORKFLOW }}