forked from AG_QGIS/Plugin_Test_Action
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b885021941 | ||
|
|
9bdff6a681 |
@@ -71,6 +71,44 @@ jobs:
|
|||||||
echo "DEBUG | metadata.txt erzeugt:"
|
echo "DEBUG | metadata.txt erzeugt:"
|
||||||
cat metadata.txt
|
cat metadata.txt
|
||||||
|
|
||||||
|
- name: ZIP-Datei erstellen
|
||||||
|
id: zip
|
||||||
|
run: |
|
||||||
|
cd repo
|
||||||
|
|
||||||
|
# Plugin-Ordnername aus .plugin/zip_folder lesen
|
||||||
|
ZIP_FOLDER=$(cat .plugin/zip_folder)
|
||||||
|
echo "DEBUG | Plugin-Ordnername: $ZIP_FOLDER"
|
||||||
|
|
||||||
|
VERSION="${{ steps.releaseinfo.outputs.version }}"
|
||||||
|
REPO_NAME="${GITHUB_REPOSITORY##*/}"
|
||||||
|
ZIP_NAME="${REPO_NAME}-${VERSION}.zip"
|
||||||
|
|
||||||
|
echo "DEBUG | ZIP wird erzeugt: $ZIP_NAME"
|
||||||
|
|
||||||
|
# Temporären Build-Ordner anlegen
|
||||||
|
mkdir -p dist/${ZIP_FOLDER}
|
||||||
|
|
||||||
|
# Plugin-Dateien kopieren (alles außer CI-/Meta-Verzeichnisse)
|
||||||
|
rsync -a \
|
||||||
|
--exclude='.git' \
|
||||||
|
--exclude='.gitea' \
|
||||||
|
--exclude='.plugin' \
|
||||||
|
--exclude='dist' \
|
||||||
|
./ dist/${ZIP_FOLDER}/
|
||||||
|
|
||||||
|
# ZIP erzeugen
|
||||||
|
cd dist
|
||||||
|
zip -r "${ZIP_NAME}" "${ZIP_FOLDER}/" \
|
||||||
|
-x "*.pyc" -x "*/__pycache__/*"
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
# ZIP-Name für spätere Steps bereitstellen
|
||||||
|
echo "zip_name=${ZIP_NAME}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
echo "DEBUG | ZIP-Datei erzeugt: dist/${ZIP_NAME}"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- name: Debug Info
|
- name: Debug Info
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
1
.plugin/zip_folder
Normal file
1
.plugin/zip_folder
Normal file
@@ -0,0 +1 @@
|
|||||||
|
sn_test
|
||||||
Reference in New Issue
Block a user