-
Notifications
You must be signed in to change notification settings - Fork 867
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automate Release: From scratch builds (#1739)
- Loading branch information
Showing
11 changed files
with
328 additions
and
268 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Make an official Release | ||
|
||
on: workflow_dispatch | ||
|
||
jobs: | ||
official-release: | ||
# creates workflows for the 3 OS: ubuntu, macOS & windows | ||
runs-on: ${{ matrix.os }} | ||
|
||
# The official-release environment requires 2 manual approvals | ||
environment: | ||
name: official-release | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: [ubuntu-latest, macOS-latest, windows-latest] | ||
steps: | ||
- name: Setup Conda | ||
uses: s-weigand/setup-conda@v1 | ||
- name: Setup Anaconda | ||
run: | | ||
conda --version | ||
conda install -y conda-build anaconda-client | ||
- name: Checkout TorchServe | ||
uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: | | ||
python ts_scripts/install_dependencies.py --environment=dev | ||
pip install -e . | ||
- name: Setup Java 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '11' | ||
- name: Build PyPI & conda binaries | ||
run: python binaries/build.py | ||
- name: Push conda binaries | ||
env: | ||
ANACONDA_API_TOKEN: ${{ secrets.CONDA_PASSWORD }} | ||
run: python binaries/upload.py --upload-conda-packages | ||
- name: Push PyPI binaries | ||
env: | ||
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} | ||
if: matrix.os == 'ubuntu-latest' | ||
run: python binaries/upload.py --upload-pypi-packages | ||
- name: Login to Docker | ||
env: | ||
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}} | ||
run: docker login --username pytorchbot --password "$DOCKER_PASSWORD" | ||
- name: Build & Upload pytorch/torchserve Docker images | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
cd docker | ||
python build_upload_release.py | ||
cd .. | ||
- name: Build & Upload pytorch/torchserve-kfs Docker images | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
cd kubernetes/kserve | ||
python build_upload_release.py | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.