Skip to content

Commit 43e9ec9

Browse files
committed
Create publish-to-github.yml
1 parent 8e1c188 commit 43e9ec9

2 files changed

Lines changed: 35 additions & 1 deletion

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Publish Python 🐍 package to GitHub
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
workflow_dispatch:
8+
9+
jobs:
10+
build-and-upload:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: '3.10'
20+
21+
- name: Install build tools
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install build
25+
26+
- name: Build package
27+
run: python -m build
28+
29+
- name: Create Release and Upload Artifacts
30+
uses: softprops/action-gh-release@v2
31+
with:
32+
files: dist/*
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish-to-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Publish Python 🐍 package to PyPI
33
on:
44
push:
55
branches:
6-
- 'dev'
6+
- 'none'
77

88

99
jobs:

0 commit comments

Comments
 (0)