Skip to content

Commit

Permalink
feat: gitlab post-gitlab-release-links
Browse files Browse the repository at this point in the history
  • Loading branch information
shencangsheng committed Apr 28, 2022
1 parent 189a7a4 commit c3dead2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ COPY changelog-echo.sh /usr/local/bin/changelog-echo
COPY changelog-generate.sh /usr/local/bin/changelog-generate
COPY post-gitlab-release-13.sh /usr/local/bin/post-gitlab-release-13x
COPY post-gitlab-release-14.sh /usr/local/bin/post-gitlab-release-14x
COPY post-gitlab-release-links-14.sh /usr/local/bin/post-gitlab-release-links-14x

RUN chmod -R 755 /usr/local/bin/*

13 changes: 13 additions & 0 deletions post-gitlab-release-links-14.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

set -e

name=$1
url=$2
file_path=$3

curl --request POST "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/releases/${CI_COMMIT_TAG}/assets/links" \
--header "PRIVATE-TOKEN: ${ACCESS_TOKEN}" \
--data name="${name}" \
--data url="${url}" \
--data filepath="${file_path}"

0 comments on commit c3dead2

Please sign in to comment.