chore: sparkle ci
This commit is contained in:
parent
2ac25f022e
commit
7da5dc94ae
|
@ -58,7 +58,6 @@ jobs:
|
|||
run: |
|
||||
xcodebuild archive -project ClashX.xcodeproj -scheme ClashX\ Meta -archivePath archive/ClashX.xcarchive -showBuildTimingSummary -allowProvisioningUpdates
|
||||
|
||||
|
||||
- name: create zip
|
||||
run: ditto -c -k --sequesterRsrc --keepParent archive/ClashX.xcarchive/Products/Applications/ClashX\ Meta.app "ClashX Meta.zip"
|
||||
|
||||
|
@ -70,6 +69,28 @@ jobs:
|
|||
name: "ClashX Meta.zip"
|
||||
path: "*.zip"
|
||||
|
||||
- name: load sparkle-repo
|
||||
uses: actions/checkout@v4
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
ref: sparkle
|
||||
path: 'sparkle-repo'
|
||||
|
||||
- name: update sparkle-repo
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
run: |
|
||||
cp "ClashX Meta.zip" "sparkle-repo/ClashX Meta $GITHUB_REF_NAME.zip"
|
||||
|
||||
brew install sparkle
|
||||
echo '${{ secrets.ED_KEY }}' | $(brew --prefix)/Caskroom/sparkle/2.*/bin/generate_appcast sparkle-repo --ed-key-file -
|
||||
|
||||
cd sparkle-repo
|
||||
git config --global user.name "github-actions[bot]"
|
||||
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
|
||||
git add -A
|
||||
git commit -m $GITHUB_REF_NAME
|
||||
git push origin sparkle
|
||||
|
||||
- name: upload build to github
|
||||
uses: softprops/action-gh-release@v2
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
|
|
Loading…
Reference in New Issue