Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,18 @@ jobs:
# unreleased master content isn't consumed by anyone.
go mod download
go build ./...
NEW_RELEASE=true
fi
git tag -a $PACKAGE_VERSION -m $PACKAGE_VERSION || true
git push --tags origin master
if [ "$NEW_RELEASE" = true ]; then
# Keep a moving "latest" tag on the newest release. Only done for
# new release tags, not routine pushes, so it never points at
# unreleased master content. phrase-cli's release workflow
# excludes this tag (!latest) so it does not re-trigger.
git tag -f latest "$PACKAGE_VERSION"^{}
git push -f origin refs/tags/latest
fi
else
echo " No changes, skipping."
fi
Expand Down
1 change: 1 addition & 0 deletions clients/cli/.github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
tags:
- '*'
- '!latest'

permissions:
contents: write
Expand Down
Loading