File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed
Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 3838 run : |
3939 echo "BINARY_NAME=$(cargo metadata --offline --no-deps --format-version=1 | jq -r '.packages[].targets[] | select(.kind | map(. == "bin") | any ) | .name')" >> $GITHUB_OUTPUT
4040
41+ create-tag :
42+ runs-on : ubuntu-latest
43+ permissions :
44+ contents : write
45+ steps :
46+ - if : ${{ inputs.tag-name }}
47+ name : Create tag
48+ run : |
49+ gh api \
50+ --method POST \
51+ -H "Accept: application/vnd.github+json" \
52+ -H "X-GitHub-Api-Version: 2022-11-28" \
53+ "/repos/$OWNER_REPO/git/refs" \
54+ -f "ref=refs/tags/$TAG" -f "sha=$SHA"
55+ env :
56+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
57+ OWNER_REPO : ${{ github.repository }}
58+ TAG : ${{ inputs.tag-name }}
59+ SHA : ${{ github.sha }}
60+
4161 build :
42- needs : [env]
62+ needs : [create-tag, env]
4363 permissions :
4464 contents : write
4565 packages : write
You can’t perform that action at this time.
0 commit comments