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