Skip to content

New release

New release #10

Workflow file for this run

# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
# ******** NOTE ********
name: "New release"
on:
workflow_dispatch:
inputs:
newVersionType:
description: 'Manual increment'
required: false
default: ""
jobs:
analyze:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Setup git user information
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- name: Create Release
run: npx standard-version
if: github.event.inputs.newVersionType == ''
- name: Create Manual Release
run: npx standard-version -r ${{ github.event.inputs.newVersionType }}
if: github.event.inputs.newVersionType != ''
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.TELLAE_PAT }}
branch: main
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}