A high-performance inference engine for AI models
update release.yml
Aleksei Savin064657be9a9a
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex b4d0a0ea0..d135c8931 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -79,6 +79,25 @@ jobs:- name: "Release: Build artifacts"run: cargo tools release "${VERSION}"+ # ---------------------------------------------------------------+ # Commit + tag locally now, while the workspace only contains+ # sync/build output. Publishes below write credential files and+ # clone other repos into the workspace, which would otherwise be+ # swept into `git add -A`. The push happens at the very end,+ # after every publish step has succeeded.+ # ---------------------------------------------------------------+ - name: "Release: Commit and tag"+ run: |+ git config user.name "github-actions[bot]"+ git config user.email "github-actions[bot]@users.noreply.github.com"+ git add -A+ if git diff --staged --quiet; then+ echo "No changes to commit"+ else+ git commit -m "Release ${VERSION}"+ fi+ git tag "${VERSION}"+# ---------------------------------------------------------------# Publish Platform# ---------------------------------------------------------------@@ -196,19 +215,12 @@ jobs:fi# ---------------------------------------------------------------- # Commit changes generated by sync + release, tag, push.- # The tag is attached to the commit this pipeline produces.+ # Push the release commit and tag now that every publish has+ # succeeded. The commit and tag were created locally before any+ # publish step ran, so the workspace pollution from publishes+ # never makes it into the commit.# ---------------------------------------------------------------- - name: "Release: Commit and tag"+ - name: "Release: Push"run: |- git config user.name "github-actions[bot]"- git config user.email "github-actions[bot]@users.noreply.github.com"- git add -A- if git diff --staged --quiet; then- echo "No changes to commit"- else- git commit -m "Release ${VERSION}"- fi- git tag "${VERSION}"git push origin HEAD:maingit push origin "${VERSION}"