File tree 3 files changed +78
-0
lines changed
3 files changed +78
-0
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments