diff --git a/.github/workflows/release-linux.yml b/.github/workflows/release-linux.yml new file mode 100644 index 0000000..5cd2f17 --- /dev/null +++ b/.github/workflows/release-linux.yml @@ -0,0 +1,26 @@ +name: Upload Linux release binaries + +on: + release: + types: + - created + +jobs: + build: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.11' + - name: Install Deps + run: | + pip install .[pyinstaller] + - name: Build Executable + run: | + pyinstaller --onefile async-hf-downloader/download.py -n async-hf-downloader-linux + - name: Upload Release + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') + with: + files: dist/async-hf-downloader-linux diff --git a/.github/workflows/release-mac.yml b/.github/workflows/release-mac.yml new file mode 100644 index 0000000..96e7e55 --- /dev/null +++ b/.github/workflows/release-mac.yml @@ -0,0 +1,26 @@ +name: Upload Mac release binaries + +on: + release: + types: + - created + +jobs: + build: + runs-on: macos-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.11' + - name: Install Deps + run: | + pip install .[pyinstaller] + - name: Build Executable + run: | + pyinstaller --onefile async-hf-downloader/download.py -n async-hf-downloader-darwin + - name: Upload Release + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') + with: + files: dist/async-hf-downloader-darwin diff --git a/.github/workflows/release-windows.yml b/.github/workflows/release-windows.yml new file mode 100644 index 0000000..58cf1e6 --- /dev/null +++ b/.github/workflows/release-windows.yml @@ -0,0 +1,26 @@ +name: Upload Windows release binaries + +on: + release: + types: + - created + +jobs: + build: + runs-on: windows-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.11' + - name: Install Deps + run: | + pip install .[pyinstaller] + - name: Build Executable + run: | + pyinstaller --onefile async-hf-downloader/download.py -n async-hf-downloader-win + - name: Upload Release + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') + with: + files: dist/async-hf-downloader-win.exe