Skip to content

Commit ff8e5ad

Browse files
author
Oleg
committed
Add test job
1 parent 8ecb6b5 commit ff8e5ad

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,26 @@ concurrency:
1717
permissions: {}
1818

1919
jobs:
20+
try-release:
21+
runs-on: ubuntu-latest
22+
permissions:
23+
contents: write
24+
steps:
25+
- name: Create release assotiated with the tag
26+
env:
27+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
TARGET: ${{ github.sha }}
29+
run: >
30+
gh api
31+
--method POST
32+
-H "Accept: application/vnd.github+json"
33+
-H "X-GitHub-Api-Version: 2022-11-28"
34+
/repos/${GH_REPOSITORY}/releases
35+
-f "tag_name=$TAG"
36+
-f "target_commitish=$TARGET"
37+
-f "name=$TAG"
38+
-f "body=Automatic release for $TAG"
39+
-F "generate_release_notes=true"
2040
meta:
2141
runs-on: ubuntu-latest
2242
outputs:

0 commit comments

Comments
 (0)