Skip to content

ci: add release workflow #1

ci: add release workflow

ci: add release workflow #1

Workflow file for this run

name: Release
on:
push:
branches:
- main
workflow_dispatch:
pull_request:
jobs:
release:
name: Release
runs-on: ubuntu-22.04
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Task
uses: arduino/setup-task@v1
with:
version: 3.33.1
- name: Set up Python
uses: actions/setup-python@v4
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: 1.7.1
- name: Install dependencies
run: task ci-init
- name: Build
run: task ci-package-build
- name: Login to PyPI
run: task ci-login-pypi-publish
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
- name: Publish
run: task ci-package-publish
- name: Clean up PyPI credentials
if: always()
run: task ci-unlogin-pypi-publish