mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-08 22:33:26 +01:00
CI: refine upload list in deploy job based on test enablement
This commit is contained in:
26
.github/.obsolete/reusable-build-workflow.yml
vendored
26
.github/.obsolete/reusable-build-workflow.yml
vendored
@@ -776,6 +776,30 @@ jobs:
|
|||||||
id: date_altstore
|
id: date_altstore
|
||||||
run: echo "date=$(date -u +'%Y-%m-%d')" >> $GITHUB_OUTPUT
|
run: echo "date=$(date -u +'%Y-%m-%d')" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: List files to upload
|
||||||
|
id: list_uploads
|
||||||
|
run: |
|
||||||
|
FILES="SideStore.ipa SideStore.dSYMs.zip encrypted-build-logs.zip"
|
||||||
|
|
||||||
|
if [[ "${{ vars.ENABLE_TESTS }}" == "1" && "${{ vars.ENABLE_TESTS_BUILD }}" == "1" ]]; then
|
||||||
|
FILES="$FILES encrypted-tests-build-logs.zip"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "${{ vars.ENABLE_TESTS }}" == "1" && "${{ vars.ENABLE_TESTS_RUN }}" == "1" ]]; then
|
||||||
|
FILES="$FILES encrypted-tests-run-logs.zip test-results.zip tests-recording.mp4"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Final upload list:"
|
||||||
|
for f in $FILES; do
|
||||||
|
if [[ -f "$f" ]]; then
|
||||||
|
echo " ✓ $f"
|
||||||
|
else
|
||||||
|
echo " - $f (missing)"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "files=$FILES" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Upload to releases
|
- name: Upload to releases
|
||||||
uses: IsaacShelton/update-existing-release@v1.3.1
|
uses: IsaacShelton/update-existing-release@v1.3.1
|
||||||
with:
|
with:
|
||||||
@@ -783,7 +807,7 @@ jobs:
|
|||||||
release: ${{ inputs.release_name }}
|
release: ${{ inputs.release_name }}
|
||||||
tag: ${{ inputs.release_tag }}
|
tag: ${{ inputs.release_tag }}
|
||||||
prerelease: ${{ inputs.is_beta }}
|
prerelease: ${{ inputs.is_beta }}
|
||||||
files: SideStore.ipa SideStore.dSYMs.zip encrypted-build-logs.zip encrypted-tests-build-logs.zip encrypted-tests-run-logs.zip test-results.zip tests-recording.mp4
|
files: ${{ steps.list_uploads.outputs.files }}
|
||||||
body: |
|
body: |
|
||||||
This is an ⚠️ **EXPERIMENTAL** ⚠️ ${{ inputs.release_name }} build for commit [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }}).
|
This is an ⚠️ **EXPERIMENTAL** ⚠️ ${{ inputs.release_name }} build for commit [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }}).
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user