diff --git a/.gitea/publish.sh b/.gitea/publish.sh index 9966254..ecf5ceb 100755 --- a/.gitea/publish.sh +++ b/.gitea/publish.sh @@ -3,11 +3,12 @@ set -e PACKAGE=${GITHUB_REPOSITORY#*/} -VERSION=$(date +%Y-%m-%dt%H.%M.%S) +VERSION=$GITHUB_REF_NAME.$(date +%Y-%m-%dt%H.%M.%S) for path in "$@"; do fn=$(basename "$path") curl \ + --include \ --user "$GITHUB_ACTOR:$PACKAGE_API_TOKEN" \ --upload-file "$path" \ $GITHUB_SERVER_URL/api/packages/$GITHUB_ACTOR/generic/$PACKAGE/$VERSION/$fn