diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 26117cb..a845e81 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -25,7 +25,7 @@ jobs: - name: Abhängigkeiten installieren shell: sh run: | - apk add --no-cache bash jq git + apk add --no-cache bash jq git rsync zip - name: Daten zusammenstellen id: daten @@ -59,12 +59,28 @@ jobs: git checkout "$CHANNEL" cd .. - ls -la - ls -la repo - ls -la plugin env: CHANNEL: ${{ steps.daten.outputs.channel }} GIT_REPO_URL: ${{ steps.daten.outputs.git_repo_url }} GIT_PLUGIN_URL: ${{ steps.daten.outputs.git_plugin_url }} RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }} + - name: ZIP-Datei erstellen + id: zip + run: | + mkdir -p zip + + rsync -a \ + --exclude='.git' \ + --exclude='.gitea' \ + --exclude='.plugin' \ + --exclude='dist' \ + --exclude='plugin.cfg' \ + --exclude='*/__pycache__/*' \ + ./plugin/ ./zip/${ZIP_FOLDER}/ + + ls -la zip/${ZIP_FOLDER}/ + + env: + ZIP_FOLDER: ${{ steps.daten.outputs.zip_folder }} + ZIP_FILE: ${{ steps.daten.outputs.zip_folder }}.zip \ No newline at end of file