Skip to content

Commit 751f7d4

Browse files
author
Oleg
committed
Remove manual tag creation. Use release API to create a tag
1 parent 8ecb6b5 commit 751f7d4

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -154,20 +154,7 @@ jobs:
154154

155155
steps:
156156

157-
- name: Create a tag to mark previous latest version
158-
env:
159-
COMMIT: ${{ env.COMMIT }}
160-
GH_TOKEN: ${{ secrets.PAT_GITHUB }}
161-
run: >
162-
gh api
163-
--method POST
164-
-H "Accept: application/vnd.github+json"
165-
-H "X-GitHub-Api-Version: 2022-11-28"
166-
/repos/${GH_REPOSITORY}/git/refs
167-
-f "ref=refs/tags/$TAG"
168-
-f "sha=$COMMIT"
169-
170-
- name: Create release assotiated with the tag
157+
- name: Create a release for previous implementation version
171158
env:
172159
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
173160
run: >
@@ -177,6 +164,7 @@ jobs:
177164
-H "X-GitHub-Api-Version: 2022-11-28"
178165
/repos/${GH_REPOSITORY}/releases
179166
-f "tag_name=$TAG"
167+
-f "target_commitish=$COMMIT"
180168
-f "name=$TAG"
181169
-f "body=Automatic release for $TAG"
182170
-F "generate_release_notes=true"

0 commit comments

Comments
 (0)