This commit is contained in:
@@ -37,7 +37,9 @@ jobs:
|
||||
REPOSITORY_OWNER: ${{ gitea.repository_owner }}
|
||||
VERSION: ${{ gitea.ref_name }}
|
||||
run: |
|
||||
test -n "$GITEA_TOKEN" || { echo "GITEA_TOKEN is empty"; exit 1; }
|
||||
VERSION="${GITEA_REF_NAME}"
|
||||
curl --fail-with-body \
|
||||
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||
--user "${GITEA_ACTOR}:${GITEA_TOKEN}" \
|
||||
--upload-file dist/samba-configer \
|
||||
"${SERVER_URL}/api/packages/${REPOSITORY_OWNER}/generic/samba-configer/${VERSION}/samba-configer-linux-amd64"
|
||||
"${GITEA_SERVER_URL}/api/packages/${GITEA_REPOSITORY_OWNER}/generic/samba-configer/${VERSION}/samba-configer-linux-amd64"
|
||||
|
||||
Reference in New Issue
Block a user