File tree Expand file tree Collapse file tree 1 file changed +36
-1
lines changed
Expand file tree Collapse file tree 1 file changed +36
-1
lines changed Original file line number Diff line number Diff line change 1212 - ' .github/workflows/sonarcloud.yml'
1313 - ' .cirrus.yml'
1414 - ' README.md'
15+ release :
16+ types : [published]
1517
1618env :
1719 # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
@@ -25,7 +27,7 @@ defaults:
2527 shell : bash
2628
2729jobs :
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.
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 }}
You can’t perform that action at this time.
0 commit comments