update script
This commit is contained in:
parent
b5c44fcefc
commit
7939db48b5
11
.github/workflows/publish.yml
vendored
11
.github/workflows/publish.yml
vendored
@ -42,14 +42,3 @@ jobs:
|
||||
BINTARY_REPO: ${{ secrets.BINTARY_REPO }}
|
||||
BINTARY_APIKEY: ${{ secrets.BINTARY_APIKEY }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Create Release
|
||||
uses: actions/create-release@latest
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
|
||||
with:
|
||||
tag_name: ${github.ref:10}_legacy
|
||||
release_name: Release ${{ github.ref }}_legacy
|
||||
body: |
|
||||
Legacy Support
|
||||
draft: false
|
||||
prerelease: false
|
||||
|
@ -17,5 +17,22 @@ LATEST_HASH=$(git rev-parse origin/legacy/android_support)
|
||||
|
||||
git cherry-pick $LATEST_HASH
|
||||
|
||||
git tag "$CURRENT_VERSION"_legacy
|
||||
|
||||
echo "Publish Android"
|
||||
cd $CURRENT_DIR/doric-android && ./gradlew clean publishAll
|
||||
|
||||
# get repo name from git
|
||||
remote=$(git config --get remote.origin.url)
|
||||
repo=$(basename $remote .git)
|
||||
|
||||
commit=$(git rev-parse HEAD)
|
||||
|
||||
curl -s -X POST https://api.github.com/repos/doric-pub/$repo/git/refs \
|
||||
-H "Authorization: token $GITHUB_TOKEN" \
|
||||
-d @- << EOF
|
||||
{
|
||||
"ref": "refs/tags/'$CURRENT_VERSION'_legacy",
|
||||
"sha": "$commit"
|
||||
}
|
||||
EOF
|
Reference in New Issue
Block a user