Fix release workflow to support non-main branches

This commit is contained in:
Arkadiusz Fal
2026-02-13 20:16:04 +01:00
parent c339597f8a
commit 6855210608

View File

@@ -218,14 +218,14 @@ jobs:
sed -i 's/CURRENT_PROJECT_VERSION = [0-9]*/CURRENT_PROJECT_VERSION = ${{ env.BUILD_NUMBER }}/' Yattee.xcodeproj/project.pbxproj sed -i 's/CURRENT_PROJECT_VERSION = [0-9]*/CURRENT_PROJECT_VERSION = ${{ env.BUILD_NUMBER }}/' Yattee.xcodeproj/project.pbxproj
git add Yattee.xcodeproj/project.pbxproj git add Yattee.xcodeproj/project.pbxproj
git commit -m "Bump build number to ${{ env.BUILD_NUMBER }}" git commit -m "Bump build number to ${{ env.BUILD_NUMBER }}"
git push git push origin ${{ github.ref_name }}
- uses: actions/download-artifact@v4 - uses: actions/download-artifact@v4
with: with:
path: artifacts path: artifacts
- uses: ncipollo/release-action@v1 - uses: ncipollo/release-action@v1
with: with:
artifacts: artifacts/**/*.ipa,artifacts/**/*.zip,artifacts/**/*.pkg artifacts: artifacts/**/*.ipa,artifacts/**/*.zip,artifacts/**/*.pkg
commit: main commit: ${{ github.ref_name }}
tag: ${{ env.VERSION_NUMBER }}-${{ env.BUILD_NUMBER }} tag: ${{ env.VERSION_NUMBER }}-${{ env.BUILD_NUMBER }}
prerelease: true prerelease: true
bodyFile: CHANGELOG.md bodyFile: CHANGELOG.md