Skip to content

Commit b87d918

Browse files
committed
tag only
1 parent c14cd20 commit b87d918

File tree

1 file changed

+9
-23
lines changed

1 file changed

+9
-23
lines changed

.github/workflows/release.yml

+9-23
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
workflow_call:
66
push:
77
branches:
8-
- main
8+
- tag-release
99

1010
permissions:
1111
contents: write
@@ -15,31 +15,17 @@ jobs:
1515
release:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: googleapis/release-please-action@v4
19-
with:
20-
token: ${{ secrets.BE_SDK_PAT }}
21-
id: release
2218
- uses: actions/checkout@v4
23-
if: ${{ steps.release.outputs.release_created }}
24-
- uses: dtolnay/rust-toolchain@stable
25-
if: ${{ steps.release.outputs.release_created }}
26-
- uses: katyo/publish-crates@v2
27-
with:
28-
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
29-
id: publish-crates
30-
if: ${{ steps.release.outputs.release_created }}
31-
# https://github.com/googleapis/release-please-action?tab=readme-ov-file#creating-majorminor-tags
3219
- name: Tag versions
33-
if: ${{ steps.release.outputs.release_created && steps.publish-crates.outcome == 'success' }}
3420
run: |
3521
git config user.name github-actions[bot]
3622
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
3723
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/googleapis/release-please-action.git"
38-
git tag -d v${{ steps.release.outputs.major }} || true
39-
git tag -d v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
40-
git push origin :v${{ steps.release.outputs.major }} || true
41-
git push origin :v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} || true
42-
git tag -a v${{ steps.release.outputs.major }} -m "Release v${{ steps.release.outputs.major }}"
43-
git tag -a v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }} -m "Release v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}"
44-
git push origin v${{ steps.release.outputs.major }}
45-
git push origin v${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}
24+
git tag -d v1 || true
25+
git tag -d v1.0 || true
26+
git push origin :v1 || true
27+
git push origin :v1.0 || true
28+
git tag -a v1 -m "Release v1"
29+
git tag -a v1.0 -m "Release v1.0"
30+
git push origin v1
31+
git push origin v1.0

0 commit comments

Comments
 (0)