diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 334ac49..8045d57 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,29 +1,39 @@ name: Build and Release IPA + on: push: branches: - dev + jobs: build: name: Build IPA runs-on: macOS-latest + steps: - name: Use Node.js 20 uses: actions/setup-node@v4 with: node-version: '20' - + - name: Checkout code uses: actions/checkout@v4 - + with: + persist-credentials: true + - name: Run ipabuild.sh run: | chmod +x ipabuild.sh ./ipabuild.sh - - - name: Upload IPA artifact - uses: actions/upload-artifact@v4 - with: - name: Sulfur-IPA - path: build/Sulfur.ipa - compression-level: 0 + + - name: Commit and push latest IPA + run: | + git config user.name "cranci1" + git config user.email "cranci1@github.com" + + mkdir -p public-build + cp -f build/Sulfur.ipa public-build/Sulfur.ipa + + git add -f public-build/Sulfur.ipa + git diff --quiet && git diff --staged --quiet || git commit -m "Auto: Update IPA [skip ci]" + git push diff --git a/.gitignore b/.gitignore index c0d6680..2430072 100644 --- a/.gitignore +++ b/.gitignore @@ -63,10 +63,9 @@ DerivedData/ *.hmap ## App packaging -*.ipa *.dSYM.zip *.dSYM - +public-build ## Playgrounds timeline.xctimeline playground.xcworkspace @@ -131,4 +130,4 @@ iOSInjectionProject/ /*.gcno **/xcshareddata/WorkspaceSettings.xcsettings -# End of https://www.toptal.com/developers/gitignore/api/macos,swift,xcode \ No newline at end of file +# End of https://www.toptal.com/developers/gitignore/api/macos,swift,xcode diff --git a/public-build/Sulfur.ipa b/public-build/Sulfur.ipa new file mode 100644 index 0000000..5d3c030 Binary files /dev/null and b/public-build/Sulfur.ipa differ