simplify upload-artifacts
Some checks failed
continuous-integration/drone Build was killed

This commit is contained in:
2025-09-07 16:38:58 +05:30
parent b32f59b708
commit fc542ba388

View File

@@ -61,13 +61,22 @@ steps:
path: /artifacts path: /artifacts
- name: upload-artifacts - name: upload-artifacts
image: akkuman/gitea-release-action@v1 image: ubuntu:latest
depends_on: [arch-build, debian-build, fedora-build] depends_on: [arch-build, debian-build, fedora-build]
with: commands:
files: |- - apt update && apt install -y curl jq
/artifacts/debian-setup - |
/artifacts/fedora-setup LATEST_TAG=$(curl -s "https://gitea.akshun-lab.cc/api/v1/repos/aggarwalakshun/python-setup/releases/latest" | jq -r '.tag_name')
/artifacts/arch-setup echo "Latest tag: $LATEST_TAG"
for file in /artifacts/*-setup; do
FILENAME=$(basename "$file")
echo "Uploading $FILENAME..."
curl -X POST "https://gitea.akshun-lab.cc/api/v1/repos/aggarwalakshun/python-setup/releases/$LATEST_TAG/assets?name=$FILENAME" \
-H "Authorization: token $GITEA_TOKEN" \
-H "Content-Type: application/octet-stream" \
--data-binary @"$file"
done
environment: environment:
GITEA_TOKEN: GITEA_TOKEN: