Marc Cataford
eacc51aa62
build: pytest call build: set up venv test: snapshot update, formatting chore: author info formatting chore: author info formatting build: includes ci: release update docs: set_version
32 lines
681 B
YAML
32 lines
681 B
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
release:
|
|
name: Release
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.9
|
|
- name: Get tag
|
|
id: get-tag
|
|
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/v}
|
|
- name: Prepare
|
|
run: |
|
|
. script/bootstrap
|
|
python ./set_version.py ${{ steps.get-tag.outputs.tag }}
|
|
python -m build
|
|
- uses: softprops/action-gh-release@v1
|
|
with:
|
|
tag_name: ${{ join(['v', steps.get-tag.outputs.tag]) }}
|
|
draft: true
|
|
files: ./dist/*
|
|
|
|
|
|
|