Skip to content

Commit 28fb128

Browse files
authored
Merge pull request #192 from spyoungtech/le
Add release workflow
2 parents 7d7a234 + c34541d commit 28fb128

File tree

2 files changed

+37
-3
lines changed

2 files changed

+37
-3
lines changed

.github/workflows/release.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: setup python
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: 3.11
18+
19+
- name: build
20+
shell: bash
21+
run: |
22+
python -m pip install --upgrade wheel setuptools build
23+
python -m build
24+
- name: Release PyPI
25+
shell: bash
26+
env:
27+
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
28+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
29+
run: |
30+
pip install --upgrade twine
31+
twine upload dist/*
32+
- name: Release GitHub
33+
uses: softprops/action-gh-release@v1
34+
with:
35+
files: "dist/*"
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

setup.cfg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,3 @@ cmdclass =
4848
ahk =
4949
py.typed
5050
templates/*.ahk
51-
52-
[bdist_wheel]
53-
universal = True

0 commit comments

Comments
 (0)