Skip to content

Commit 3ce1ca3

Browse files
committed
Revert "Add Python Semantic Release for automated releases (#27)"
This reverts commit c085e54.
1 parent c085e54 commit 3ce1ca3

File tree

5 files changed

+101
-1366
lines changed

5 files changed

+101
-1366
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
branches: [ main, develop ]
66
pull_request:
77
branches: [ main, develop ]
8-
workflow_call:
98

109
jobs:
1110
test:
@@ -58,7 +57,7 @@ jobs:
5857

5958
integration-test:
6059
runs-on: ubuntu-latest
61-
if: github.event_name == 'pull_request' || github.event_name == 'workflow_call'
60+
if: github.event_name == 'pull_request'
6261

6362
steps:
6463
- uses: actions/checkout@v4

.github/workflows/release.yml

Lines changed: 18 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,31 @@
11
name: Release
22

33
on:
4-
workflow_dispatch:
5-
inputs:
6-
level:
7-
description: 'Version level to bump'
8-
required: true
9-
default: 'patch'
10-
type: choice
11-
options:
12-
- patch
13-
- minor
14-
- major
4+
release:
5+
types: [created]
156

167
jobs:
17-
ci:
18-
uses: ./.github/workflows/ci.yml
19-
secrets: inherit
20-
21-
release:
8+
deploy:
229
runs-on: ubuntu-latest
23-
needs: ci
24-
concurrency: release
25-
permissions:
26-
id-token: write
27-
contents: write
28-
10+
2911
steps:
3012
- uses: actions/checkout@v4
31-
with:
32-
fetch-depth: 0
33-
token: ${{ secrets.GITHUB_TOKEN }}
3413

35-
- name: Install Pixi
36-
uses: prefix-dev/setup-[email protected]
14+
- name: Set up Python
15+
uses: actions/setup-python@v5
3716
with:
38-
pixi-version: v0.29.0
17+
python-version: '3.12'
3918

40-
- name: Semantic Release
41-
run: pixi run python -m semantic_release version --${{ inputs.level }}
42-
env:
43-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install -e ".[dev]"
23+
24+
- name: Build package
25+
run: python -m build
4426

4527
- name: Publish to PyPI
46-
uses: pypa/gh-action-pypi-publish@release/v1
47-
if: github.ref == 'refs/heads/main'
28+
env:
29+
TWINE_USERNAME: __token__
30+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
31+
run: twine upload dist/*

0 commit comments

Comments
 (0)