mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-18 11:13:28 +01:00
- CI: moved posting to beta-build-num repo into build-job instead of deploy coz we want to roll the beta-build-num for each success of build-job even if the workflow failed.
This commit is contained in:
54
.github/workflows/reusable-build-workflow.yml
vendored
54
.github/workflows/reusable-build-workflow.yml
vendored
@@ -323,17 +323,24 @@ jobs:
|
|||||||
name: SideStore-${{ steps.version.outputs.version }}-dSYMs.zip
|
name: SideStore-${{ steps.version.outputs.version }}-dSYMs.zip
|
||||||
path: SideStore.dSYMs.zip
|
path: SideStore.dSYMs.zip
|
||||||
|
|
||||||
- name: Zip beta-beta-build-num & update_apps.py
|
- name: Keep rolling the build numbers for each successful build
|
||||||
run: |
|
|
||||||
zip -r -9 ./beta-build-num.zip ./SideStore/beta-build-num update_apps.py
|
|
||||||
|
|
||||||
- name: Upload beta-build-num artifact
|
|
||||||
if: ${{ inputs.is_beta }}
|
if: ${{ inputs.is_beta }}
|
||||||
uses: actions/upload-artifact@v4
|
run: |
|
||||||
with:
|
pushd SideStore/beta-build-num/
|
||||||
name: beta-build-num-${{ steps.version.outputs.version }}.zip
|
|
||||||
path: beta-build-num.zip
|
echo "Configure Git user (committer details)"
|
||||||
|
git config user.name "GitHub Actions"
|
||||||
|
git config user.email "github-actions@github.com"
|
||||||
|
|
||||||
|
echo "Adding files to commit"
|
||||||
|
git add --verbose build_number.txt
|
||||||
|
git commit -m " - updated for ${{ inputs.release_tag }} - ${{ needs.common.outputs.short-commit }} deployment" || echo "No changes to commit"
|
||||||
|
|
||||||
|
echo "Pushing to remote repo"
|
||||||
|
git push --verbose
|
||||||
|
popd
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
tests-build:
|
tests-build:
|
||||||
name: Tests-Build SideStore - ${{ inputs.release_tag }}
|
name: Tests-Build SideStore - ${{ inputs.release_tag }}
|
||||||
@@ -707,17 +714,7 @@ jobs:
|
|||||||
- name: Download test-results artifact
|
- name: Download test-results artifact
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: test-results-${{ needs.common.outputs.short-commit }}.zip
|
name: test-results-${{ needs.common.outputs.short-commit }}.zip
|
||||||
|
|
||||||
- name: Download beta-build-num artifact
|
|
||||||
if: ${{ inputs.is_beta }}
|
|
||||||
uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
name: beta-build-num-${{ needs.build.outputs.version }}.zip
|
|
||||||
- name: Un-Zip beta-beta-build-num & update_apps.py
|
|
||||||
run: |
|
|
||||||
unzip beta-build-num.zip -d .
|
|
||||||
|
|
||||||
|
|
||||||
- name: List files before upload
|
- name: List files before upload
|
||||||
run: |
|
run: |
|
||||||
@@ -755,23 +752,6 @@ jobs:
|
|||||||
Commit SHA: `${{ github.sha }}`
|
Commit SHA: `${{ github.sha }}`
|
||||||
Version: `${{ needs.build.outputs.version }}`
|
Version: `${{ needs.build.outputs.version }}`
|
||||||
|
|
||||||
- name: Publish to SideStore/beta-build-num
|
|
||||||
if: ${{ inputs.is_beta }}
|
|
||||||
run: |
|
|
||||||
pushd SideStore/beta-build-num/
|
|
||||||
|
|
||||||
echo "Configure Git user (committer details)"
|
|
||||||
git config user.name "GitHub Actions"
|
|
||||||
git config user.email "github-actions@github.com"
|
|
||||||
|
|
||||||
echo "Adding files to commit"
|
|
||||||
git add --verbose build_number.txt
|
|
||||||
git commit -m " - updated for ${{ inputs.release_tag }} - ${{ needs.common.outputs.short-commit }} deployment" || echo "No changes to commit"
|
|
||||||
|
|
||||||
echo "Pushing to remote repo"
|
|
||||||
git push --verbose
|
|
||||||
popd
|
|
||||||
|
|
||||||
- name: Get formatted date
|
- name: Get formatted date
|
||||||
run: |
|
run: |
|
||||||
FORMATTED_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
|
FORMATTED_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
|
||||||
|
|||||||
Reference in New Issue
Block a user