Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1337eba8c0 |
@@ -27,16 +27,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Build SDSAT tar.gz
|
- name: Build SDSAT tar.gz
|
||||||
run: |
|
run: |
|
||||||
set -euxo pipefail
|
|
||||||
|
|
||||||
mkdir -p dist buildtmp
|
mkdir -p dist buildtmp
|
||||||
|
|
||||||
# Copie uniquement les scripts dans buildtmp
|
# Copie uniquement les scripts dans buildtmp
|
||||||
cp -r scripts/* buildtmp/
|
cp -r scripts/* buildtmp/
|
||||||
|
|
||||||
pwd
|
|
||||||
ls -ila
|
|
||||||
|
|
||||||
# Supprime __init__.py
|
# Supprime __init__.py
|
||||||
find buildtmp/ -name "__init__.py" -delete
|
find buildtmp/ -name "__init__.py" -delete
|
||||||
|
|
||||||
@@ -78,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