diff --git a/.github/workflows/package-source-zip.yml b/.github/workflows/package-source-zip.yml new file mode 100644 index 0000000..0d8be9b --- /dev/null +++ b/.github/workflows/package-source-zip.yml @@ -0,0 +1,43 @@ +name: Package source ZIP + +on: + push: + branches: + - artifact/source-zip-v1.5.0 + pull_request: + branches: + - main + +permissions: + contents: read + +jobs: + package-source: + runs-on: ubuntu-latest + steps: + - name: Check out latest main + uses: actions/checkout@v4 + with: + ref: main + + - name: Create clean source ZIP + run: | + set -euo pipefail + mkdir -p /tmp/Sonario-Android-v1.5.0 + rsync -a \ + --exclude='.git/' \ + --exclude='.gradle/' \ + --exclude='build/' \ + --exclude='*/build/' \ + --exclude='*.apk' \ + ./ /tmp/Sonario-Android-v1.5.0/ + cd /tmp + zip -qr "$GITHUB_WORKSPACE/Sonario-Android-v1.5.0.zip" Sonario-Android-v1.5.0 + + - name: Upload source ZIP + uses: actions/upload-artifact@v4 + with: + name: Sonario-Android-v1.5.0-source + path: Sonario-Android-v1.5.0.zip + if-no-files-found: error + retention-days: 7 diff --git a/SOURCE_ZIP_REQUEST.md b/SOURCE_ZIP_REQUEST.md new file mode 100644 index 0000000..d35a286 --- /dev/null +++ b/SOURCE_ZIP_REQUEST.md @@ -0,0 +1 @@ +Temporary branch-only marker used to trigger a source ZIP packaging run. The generated archive checks out and packages the latest main branch.