-
Notifications
You must be signed in to change notification settings - Fork 103
35 lines (32 loc) · 1012 Bytes
/
publish.yml
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
30
31
32
33
34
35
name: Release new version
on:
workflow_dispatch:
inputs:
version:
description: 'Semantic version of the form M.m.p[.devXYZ]'
required: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install requirements
run: pip install --upgrade setuptools twine wheel
- name: Create wheel
run: |
echo ${{ github.event.inputs.version }} > mmpy_bot/version.txt
python setup.py bdist_wheel
- name: Upload wheel
run: twine upload dist/* -u __token__ -p '${{ secrets.PYPI_API_TOKEN }}' --verbose
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
title: "v${{ github.event.inputs.version }}"
files: |
LICENSE
dist/*.whl