Skip to content

Commit 0881097

Browse files
committed
Add release workflow
1 parent 4218437 commit 0881097

File tree

3 files changed

+33
-1
lines changed

3 files changed

+33
-1
lines changed

.github/workflows/release.yaml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "[0-9]+.[0-9]+.[0-9]+"
7+
jobs:
8+
release-build:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
python-version: ["3.11"]
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Build release assets
20+
run: |
21+
make build
22+
23+
- name: Create GitHub release
24+
uses: softprops/action-gh-release@v2
25+
with:
26+
name: "Version ${{ github.ref_name }}"
27+
generate_release_notes: true
28+
files: |
29+
dist/*

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ tests: .venv
99
lint: .venv
1010
python3 -m poetry run ruff check --output-format=github --select=E9,F63,F7,F82 --target-version=py37 .
1111
python3 -m poetry run ruff check --output-format=github --target-version=py37 .
12+
13+
build: .venv
14+
python3 -m poetry build

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pydantic-spaceapi"
3-
version = "1.3.2"
3+
version = "0.1.0"
44
description = ""
55
authors = ["Andrew Williams <[email protected]>"]
66
license = "MIT"

0 commit comments

Comments
 (0)