mirror of
https://github.com/cranci1/Sora.git
synced 2026-03-11 17:45:37 +00:00
Update build.yml
This commit is contained in:
parent
9c43dc30d2
commit
b74136584a
1 changed files with 9 additions and 19 deletions
28
.github/workflows/build.yml
vendored
28
.github/workflows/build.yml
vendored
|
|
@ -1,39 +1,29 @@
|
||||||
name: Build and Release IPA
|
name: Build and Release IPA
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- dev
|
- dev
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build IPA
|
name: Build IPA
|
||||||
runs-on: macOS-latest
|
runs-on: macOS-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Use Node.js 20
|
- name: Use Node.js 20
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '20'
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
persist-credentials: true
|
|
||||||
|
|
||||||
- name: Run ipabuild.sh
|
- name: Run ipabuild.sh
|
||||||
run: |
|
run: |
|
||||||
chmod +x ipabuild.sh
|
chmod +x ipabuild.sh
|
||||||
./ipabuild.sh
|
./ipabuild.sh
|
||||||
|
|
||||||
- name: Commit and push latest IPA
|
- name: Upload IPA artifact
|
||||||
run: |
|
uses: actions/upload-artifact@v4
|
||||||
git config user.name "cranci1"
|
with:
|
||||||
git config user.email "cranci1@github.com"
|
name: Sulfur-IPA
|
||||||
|
path: build/Sulfur.ipa
|
||||||
mkdir -p public-build
|
compression-level: 0
|
||||||
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
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue