Skip to content

Commit 39e44b5

Browse files
authored
Add iOS release artifact publishing job
Added a new job to publish release artifacts for iOS builds.
1 parent e8bc20f commit 39e44b5

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

.github/workflows/ios.yml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ on:
1212
- '.github/workflows/sonarcloud.yml'
1313
- '.cirrus.yml'
1414
- 'README.md'
15+
release:
16+
types: [published]
1517

1618
env:
1719
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
@@ -25,7 +27,7 @@ defaults:
2527
shell: bash
2628

2729
jobs:
28-
build:
30+
ios-build:
2931
# The CMake configure and build commands are platform agnostic and should work equally
3032
# well on Windows or Mac. You can convert this to a matrix build if you need
3133
# cross-platform coverage.
@@ -66,3 +68,36 @@ jobs:
6668
path: build/
6769
retention-days: 14
6870
overwrite: true
71+
72+
# Publish artifacts to GitHub releases (only on release events)
73+
publish-release-ios:
74+
if: github.event_name == 'release' && github.event.action == 'published'
75+
needs:
76+
- ios-build
77+
runs-on: ubuntu-latest
78+
name: 🚀 Publish Release Artifacts
79+
steps:
80+
- name: Download all artifacts
81+
uses: actions/download-artifact@v6
82+
with:
83+
path: artifacts
84+
pattern: fluidsynth-*
85+
merge-multiple: false
86+
87+
- name: Create release archives
88+
run: |
89+
cd artifacts
90+
ls -la
91+
for dir in */; do
92+
echo "Creating archive for $dir"
93+
zip -r "${dir%/}.zip" "$dir"
94+
done
95+
ls -la *.zip
96+
97+
- name: Upload release assets
98+
uses: softprops/action-gh-release@v2
99+
with:
100+
files: |
101+
artifacts/*.zip
102+
env:
103+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)