Skip to content

Commit 01ef346

Browse files
authored
Merge pull request #24 from alan-turing-institute/23-release-workflow
Add release workflow (#23)
2 parents 140ff0f + d09f8c8 commit 01ef346

2 files changed

Lines changed: 40 additions & 1 deletion

File tree

.github/workflows/release.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.10'
19+
20+
- name: Install uv
21+
uses: astral-sh/setup-uv@v7
22+
with:
23+
python-version: '3.10'
24+
enable-cache: true
25+
cache-suffix: release
26+
activate-environment: true
27+
28+
- name: Install dependencies
29+
run: |
30+
uv pip install build twine
31+
32+
- name: Build package
33+
run: python -m build
34+
35+
- name: Publish package to PyPI
36+
env:
37+
TWINE_USERNAME: __token__
38+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
39+
run: python -m twine upload dist/*

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "auto-cast"
3-
version = "0.1.0"
3+
version = "0.0.1"
44
description = "Spatiotemporal forecasting"
55
readme = "README.md"
66
authors = [

0 commit comments

Comments
 (0)