Skip to content

Minor version bump to v0.6.2 #30

Minor version bump to v0.6.2

Minor version bump to v0.6.2 #30

Workflow file for this run

name: Publish
on:
push:
tags:
- 'v*'
jobs:
build:
name: Publish Package
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.14'
- name: Publish to pypi
run: |
sudo apt-get install -y portaudio19-dev
python -m pip install --upgrade pip setuptools build twine
python -m build --sdist
TWINE_USERNAME=__token__ TWINE_PASSWORD=${{ secrets.PYPI_TOKEN }} python -m twine upload dist/*
- name: Login to docker
uses: docker/login-action@v1
with:
username: mctlab
password: ${{ secrets.DOCKER_HUB_PASSWD }}
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Publish docker image
env:
TAG: ${{ steps.get_version.outputs.VERSION }}
run: |
docker build -t omnizart:${TAG} .
docker tag omnizart:${TAG} mctlab/omnizart:${TAG}
docker tag omnizart:${TAG} mctlab/omnizart:latest
docker push mctlab/omnizart
- name: Create release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body_path: CHANGELOG.md
prerelease: false
draft: false