Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1337eba8c0 | |||
| d9e8b9e41f | |||
| 1537bff629 | |||
| 6e4ffdba76 | |||
| 74ec6a0ed2 | |||
| 5794b57cbe | |||
| f174960b80 |
@@ -27,13 +27,14 @@ jobs:
|
||||
|
||||
- name: Build SDSAT tar.gz
|
||||
run: |
|
||||
mkdir -p dist buildtmp/{bin,logs,update}
|
||||
|
||||
mkdir -p dist buildtmp
|
||||
|
||||
# Copie scripts
|
||||
cp -r scripts buildtmp/bin/
|
||||
# Copie uniquement les scripts dans buildtmp
|
||||
cp -r scripts/* buildtmp/
|
||||
|
||||
# Supprime tous les __init__.py
|
||||
find buildtmp/scripts/bin -name "__init__.py" -delete
|
||||
# Supprime __init__.py
|
||||
find buildtmp/ -name "__init__.py" -delete
|
||||
|
||||
# Génère le fichier de metadata
|
||||
cat > buildtmp/BUILD_INFO.txt <<EOF
|
||||
@@ -73,6 +74,13 @@ jobs:
|
||||
|
||||
ASSET="dist/SDSAT-${TAG}.zip"
|
||||
|
||||
echo "PWD=$(pwd)"
|
||||
echo "Listing dist:"
|
||||
ls -la dist || true
|
||||
echo "Find tar.gz:"
|
||||
find . -maxdepth 3 -type f \( -name "*.tar.gz" -o -name "*.zip" \) -print -exec ls -la {} \;
|
||||
|
||||
|
||||
curl -sS -X POST "${API}/repos/${OWNER}/${REPO}/releases/${RID}/assets?name=$(basename ${ASSET})" \
|
||||
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||
-H "Content-Type: application/zip" \
|
||||
|
||||
Reference in New Issue
Block a user