Skip to content

Commit a72138a

Browse files
[MNT] Fast release workflow (#2039)
* release * Update fast_release.yml
1 parent c313c4b commit a72138a

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/fast_release.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Makes a release without testing. Don't run this unless you have to.
2+
name: Fast release
3+
4+
on:
5+
workflow_dispatch:
6+
7+
jobs:
8+
build-project:
9+
runs-on: ubuntu-22.04
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- uses: actions/setup-python@v5
15+
with:
16+
python-version: "3.10"
17+
18+
- name: Build project
19+
run: |
20+
python -m pip install build
21+
python -m build
22+
23+
- name: Store build files
24+
uses: actions/upload-artifact@v4
25+
with:
26+
name: dist
27+
path: dist/*
28+
retention-days: 5
29+
30+
upload-wheels:
31+
runs-on: ubuntu-22.04
32+
33+
steps:
34+
- uses: actions/download-artifact@v4
35+
with:
36+
name: dist
37+
path: dist
38+
39+
- name: Publish package to PyPI
40+
uses: pypa/gh-action-pypi-publish@release/v1
41+
with:
42+
password: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)