Skip to content

Commit 7469b8d

Browse files
committed
Actions: Add release actions
For releasing binaries. Triggers when a release is created. Signed-off-by: kingbri <bdashore3@proton.me>
1 parent c21c6b7 commit 7469b8d

File tree

3 files changed

+78
-0
lines changed

3 files changed

+78
-0
lines changed

.github/workflows/release-linux.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Upload Linux release binaries
2+
3+
on:
4+
release:
5+
types:
6+
- created
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-22.04
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-python@v5
14+
with:
15+
python-version: '3.11'
16+
- name: Install Deps
17+
run: |
18+
pip install .[pyinstaller]
19+
- name: Build Executable
20+
run: |
21+
pyinstaller --onefile async-hf-downloader/download.py -n async-hf-downloader-linux
22+
- name: Upload Release
23+
uses: softprops/action-gh-release@v2
24+
if: startsWith(github.ref, 'refs/tags/')
25+
with:
26+
files: dist/async-hf-downloader-linux

.github/workflows/release-mac.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Upload Mac release binaries
2+
3+
on:
4+
release:
5+
types:
6+
- created
7+
8+
jobs:
9+
build:
10+
runs-on: macos-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-python@v5
14+
with:
15+
python-version: '3.11'
16+
- name: Install Deps
17+
run: |
18+
pip install .[pyinstaller]
19+
- name: Build Executable
20+
run: |
21+
pyinstaller --onefile async-hf-downloader/download.py -n async-hf-downloader-darwin
22+
- name: Upload Release
23+
uses: softprops/action-gh-release@v2
24+
if: startsWith(github.ref, 'refs/tags/')
25+
with:
26+
files: dist/async-hf-downloader-darwin

.github/workflows/release-windows.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Upload Windows release binaries
2+
3+
on:
4+
release:
5+
types:
6+
- created
7+
8+
jobs:
9+
build:
10+
runs-on: windows-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-python@v5
14+
with:
15+
python-version: '3.11'
16+
- name: Install Deps
17+
run: |
18+
pip install .[pyinstaller]
19+
- name: Build Executable
20+
run: |
21+
pyinstaller --onefile async-hf-downloader/download.py -n async-hf-downloader-win
22+
- name: Upload Release
23+
uses: softprops/action-gh-release@v2
24+
if: startsWith(github.ref, 'refs/tags/')
25+
with:
26+
files: dist/async-hf-downloader-win.exe

0 commit comments

Comments
 (0)