mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +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:
52
.github/workflows/reusable-build-workflow.yml
vendored
52
.github/workflows/reusable-build-workflow.yml
vendored
@@ -323,16 +323,23 @@ jobs:
|
||||
name: SideStore-${{ steps.version.outputs.version }}-dSYMs.zip
|
||||
path: SideStore.dSYMs.zip
|
||||
|
||||
- name: Zip beta-beta-build-num & update_apps.py
|
||||
run: |
|
||||
zip -r -9 ./beta-build-num.zip ./SideStore/beta-build-num update_apps.py
|
||||
|
||||
- name: Upload beta-build-num artifact
|
||||
- name: Keep rolling the build numbers for each successful build
|
||||
if: ${{ inputs.is_beta }}
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: beta-build-num-${{ steps.version.outputs.version }}.zip
|
||||
path: beta-build-num.zip
|
||||
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
|
||||
|
||||
|
||||
|
||||
tests-build:
|
||||
@@ -709,16 +716,6 @@ jobs:
|
||||
with:
|
||||
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
|
||||
run: |
|
||||
echo ">>>>>>>>> Workdir <<<<<<<<<<"
|
||||
@@ -755,23 +752,6 @@ jobs:
|
||||
Commit SHA: `${{ github.sha }}`
|
||||
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
|
||||
run: |
|
||||
FORMATTED_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
|
||||
|
||||
Reference in New Issue
Block a user