Skip to content

Commit e5597f9

Browse files
Sync monorepo state at "Simplify and automate relesing the python SDK to pypi" (#116)
Syncing from userclouds/userclouds@5438f427ba6550ac1a1f5aa19b44a2329042c74e
1 parent 1c9a5ec commit e5597f9

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/release.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build and Release Python Package
2+
on:
3+
push:
4+
tags:
5+
- 'v*'
6+
jobs:
7+
build-and-release:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
id-token: write
11+
contents: read
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Set up Python
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: '3.11'
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install build
22+
- name: Build package
23+
run: python -m build
24+
- name: Publish package distributions to PyPI
25+
uses: pypa/gh-action-pypi-publish@release/v1
26+
with:
27+
verbose: true

0 commit comments

Comments
 (0)