mirror of
https://github.com/nikdoof/pydantic_spaceapi.git
synced 2025-12-13 06:22:19 +00:00
Add release workflow
This commit is contained in:
29
.github/workflows/release.yaml
vendored
Normal file
29
.github/workflows/release.yaml
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "[0-9]+.[0-9]+.[0-9]+"
|
||||
jobs:
|
||||
release-build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ["3.11"]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Build release assets
|
||||
run: |
|
||||
make build
|
||||
|
||||
- name: Create GitHub release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
name: "Version ${{ github.ref_name }}"
|
||||
generate_release_notes: true
|
||||
files: |
|
||||
dist/*
|
||||
3
Makefile
3
Makefile
@@ -9,3 +9,6 @@ tests: .venv
|
||||
lint: .venv
|
||||
python3 -m poetry run ruff check --output-format=github --select=E9,F63,F7,F82 --target-version=py37 .
|
||||
python3 -m poetry run ruff check --output-format=github --target-version=py37 .
|
||||
|
||||
build: .venv
|
||||
python3 -m poetry build
|
||||
@@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "pydantic-spaceapi"
|
||||
version = "1.3.2"
|
||||
version = "0.1.0"
|
||||
description = ""
|
||||
authors = ["Andrew Williams <andy@tensixtyone.com>"]
|
||||
license = "MIT"
|
||||
|
||||
Reference in New Issue
Block a user