feat: add write chart to exp context #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |