-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (28 loc) · 899 Bytes
/
deploy.yml
File metadata and controls
29 lines (28 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Deploy
on:
push:
tags:
- 'v*'
jobs:
deploy:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: '3.12'
- name: Install and configure poetry
run: python -m pip install poetry
- name: Install python packages
run: python -m poetry install
- name: Bump files
run: python -m poetry run python run-ci.py bump --git-tag "${GITHUB_REF#refs/tags/}"
- name: Build
run: python -m poetry build
- name: Auth
run: python -m poetry config pypi-token.pypi "${PYPI_API_TOKEN}"
env:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
- name: Publish
run: python -m poetry publish