slck/.github/workflows/release.yml
Marc Cataford eacc51aa62
build: replace poetry by pip-sync (#6)
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
2022-10-29 23:22:38 -04:00

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/*