Fixed secret from FORGEJO_TOKEN to ACCESS_TOKEN
This commit is contained in:
parent
da4a1f181e
commit
9118e4133e
1 changed files with 4 additions and 4 deletions
|
|
@ -441,10 +441,10 @@ jobs:
|
|||
|
||||
# Upload to Forgejo Debian Registry
|
||||
# Note: This requires authentication - you'll need to set up secrets
|
||||
if [ -n "$FORGEJO_TOKEN" ]; then
|
||||
if [ -n "$ACCESS_TOKEN " ]; then
|
||||
echo " 🔐 Using authentication token..."
|
||||
UPLOAD_RESULT=$(curl -s -w "%{http_code}" \
|
||||
--user "${FORGEJO_OWNER}:${FORGEJO_TOKEN}" \
|
||||
--user "${FORGEJO_OWNER}:${ACCESS_TOKEN }" \
|
||||
--upload-file "$deb_file" \
|
||||
"$UPLOAD_URL" 2>/dev/null)
|
||||
|
||||
|
|
@ -469,8 +469,8 @@ jobs:
|
|||
;;
|
||||
esac
|
||||
else
|
||||
echo " ⚠️ No FORGEJO_TOKEN set - skipping upload"
|
||||
echo " 💡 Set FORGEJO_TOKEN secret to enable automatic publishing"
|
||||
echo " ⚠️ No ACCESS_TOKEN set - skipping upload"
|
||||
echo " 💡 Set ACCESS_TOKEN secret to enable automatic publishing"
|
||||
echo " 📋 Manual upload command:"
|
||||
echo " curl --user your_username:your_token \\"
|
||||
echo " --upload-file $deb_file \\"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue