Skip to content

Use only the tag name. #184

Use only the tag name.

Use only the tag name. #184

---
# This workflow will install Python dependencies, run tests
name: Create release
on:
push:
tags:
- "v*.*.*"
jobs:
create_distributions:
runs-on: ${{ matrix.os }}
if: startsWith(github.ref, 'refs/tags/')
strategy:
fail-fast: True
max-parallel: 1
matrix:
os: [ubuntu-latest]
python-version: ["3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Create distributions
run: python build.py --package_version ${{ github.ref_name }}
- name: Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: True
draft: True
files: dist/*.zip