From 2118c635916120553e9cab66e06abe962db391c2 Mon Sep 17 00:00:00 2001 From: Logan Adams <114770087+loadams@users.noreply.github.com> Date: Fri, 6 Oct 2023 14:44:27 -0700 Subject: [PATCH 1/3] Add release flow (#4467) --- .github/workflows/release.yml | 47 +++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000000..093bc98d41e8 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,47 @@ +name: Build and publish DeepSpeed release + +on: + push: + tags: + - 'v*.*.*' + +jobs: + deploy: + runs-on: ubuntu-20.04 + environment: release-env + + steps: + - uses: actions/checkout@v3 + with: + ref: "master" + - name: Get release version from tag + run: | + echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV + - name: Check release version + run: | + python release/check_release_version.py --release_version ${{ env.RELEASE_VERSION }} + - name: Build DeepSpeed + run: | + DS_BUILD_STRING=" " python setup.py sdist_wheel + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_API_TOKEN }} + repository-url: https://upload.pypi.org/legacy/ + - name: Bump version + run: | + python release/bump_patch_version.py --current_version ${{ env.RELEASE_VERSION }} + - name: Create Pull Request + uses: peter-evans/create-pull-request@v4 + with: + token: ${{ secrets.GH_PAT }} + add-paths: | + version.txt + body: | + **Auto-generated PR to update version.txt after a DeepSpeed release** + Released version - ${{ env.RELEASE_VERSION }} + Author - @${{ github.actor }} + branch: AutoPR/${{ env.RELEASE_VERSION }} + assignees: ${{ github.actor }} + title: "Update version.txt after ${{ env.RELEASE_VERSION }} release" + author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> From 26d0dd927b21a3422973fd5cea9616ec03987823 Mon Sep 17 00:00:00 2001 From: Michael Wyatt Date: Fri, 6 Oct 2023 14:57:13 -0700 Subject: [PATCH 2/3] bump to 0.11.0 --- version.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.txt b/version.txt index 9b40aa6c214f..d9df1bbc0c7b 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.10.4 +0.11.0 From c4d467953320b3f420d2acf3d97ae423ad1f9003 Mon Sep 17 00:00:00 2001 From: Jeff Rasley Date: Fri, 6 Oct 2023 15:10:36 -0700 Subject: [PATCH 3/3] bump to 0.11.1 --- version.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.txt b/version.txt index d9df1bbc0c7b..af88ba824866 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.11.0 +0.11.1