ok, now my stuff works
Build and Publish / build (push) Failing after 4m50s

This commit is contained in:
2026-03-24 20:37:17 +00:00
parent ce6d2741f8
commit 33425b2dfe
+1 -16
View File
@@ -29,31 +29,16 @@ jobs:
mkdir -p dist
go build -v -o dist/samba-configer .
- name: Check upload auth
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
GITEA_ACTOR: ${{ gitea.actor }}
SERVER_URL: ${{ gitea.server_url }}
REPOSITORY_OWNER: ${{ gitea.repository_owner }}
VERSION: ${{ gitea.ref_name }}
run: |
echo "${SERVER_URL}"
echo "${REPOSITORY_OWNER}"
echo "${VERSION}"
echo "${GITEA_ACTOR}"
test -n "$GITEA_TOKEN" || { echo "GITEA_TOKEN is empty"; exit 1; }
- name: Upload package
if: startsWith(gitea.ref, 'refs/tags/')
env:
GITEA_ACTOR: ${{ gitea.actor }}
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
SERVER_URL: ${{ gitea.server_url }}
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 \
--user "${GITEA_ACTOR}:${GITEA_TOKEN}" \
--upload-file dist/samba-configer \