Skip to content

Merge pull request #6 from mikecarr/next #21

Merge pull request #6 from mikecarr/next

Merge pull request #6 from mikecarr/next #21

Workflow file for this run

name: Build and Release
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Get version from tag
id: vars
run: echo "VERSION=${GITHUB_REF#refs/tags/} >> $GITHUB_ENV"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel setuptools-scm
- name: Build package
run: |
python setup.py sdist bdist_wheel
- name: Upload Package to Release
uses: softprops/action-gh-release@v1
with:
files: |
dist/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}