This commit is contained in:
@@ -33,9 +33,12 @@ jobs:
|
||||
if: startsWith(gitea.ref, 'refs/tags/')
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
SERVER_URL: ${{ gitea.server_url }}
|
||||
REPOSITORY_OWNER: ${{ gitea.repository_owner }}
|
||||
VERSION: ${{ gitea.ref_name }}
|
||||
ACTOR: ${{ gitea.actor }}
|
||||
run: |
|
||||
VERSION="${GITEA_REF_NAME}"
|
||||
curl --fail-with-body \
|
||||
--user "${GITEA_ACTOR}:${GITEA_TOKEN}" \
|
||||
--user "${ACTOR}:${GITEA_TOKEN}" \
|
||||
--upload-file dist/samba-configer \
|
||||
"${GITEA_SERVER_URL}/api/packages/${GITEA_REPOSITORY_OWNER}/generic/samba-configer/${VERSION}/samba-configer-linux-amd64"
|
||||
"${SERVER_URL}/api/packages/${REPOSITORY_OWNER}/generic/samba-configer/${VERSION}/samba-configer-linux-amd64"
|
||||
|
||||
Reference in New Issue
Block a user