test for speed up publishing. #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Make XCFramework | |
on: [push] | |
jobs: | |
build: | |
runs-on: macos-latest | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Pods XCFramework | |
uses: gradle/gradle-build-action@v2.6.0 | |
with: | |
arguments: pods:podPublishXCFramework -x test | |
- name: Commit Pods to GitHub | |
if: github.ref == 'refs/heads/main' | |
run: | | |
git config --global user.email "a.urusihara@gmail.com" | |
git config --global user.name "Akihiro Urushihara" | |
cd ./pods/build/cocoapods/repository/ | |
git init | |
git add --all | |
git commit -m "by GitHub Action CI (SHA ${GITHUB_SHA})" | |
git remote add origin https://${GH_TOKEN}@github.com/uakihir0/kbsky-cocoapods.git | |
git push -f origin HEAD:main |