Skip to content

Merge pull request #4 from cantinilab/dev #2

Merge pull request #4 from cantinilab/dev

Merge pull request #4 from cantinilab/dev #2

Workflow file for this run

name: Upload Python Package
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- "*" # Push events to matching v*, i.e. v1.0, v20.15.10
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
release:
name: Create Release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
# by default, it uses a depth of 1
# this fetches all history so that we can read each commit
fetch-depth: 0
- name: Generate Changelog
run: .github/release_message.sh > release_message.md
- name: Release
uses: softprops/action-gh-release@v2
with:
body_path: release_message.md
deploy:
needs: release
strategy:
fail-fast: true
matrix:
python-version: ["3.10"]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Build and publish
run: |
poetry publish -u __token__ -p ${{ secrets.POETRY_TOKEN }} --build