This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/.github/workflows/publish.yml

55 lines
1.6 KiB
YAML
Raw Normal View History

2020-03-24 17:20:39 +08:00
name: Publish SDK
on:
push:
tags:
2020-03-24 18:58:42 +08:00
- '*.*.*'
2020-03-24 17:20:39 +08:00
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
2020-03-24 18:17:58 +08:00
- name: setup JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
2020-03-24 17:20:39 +08:00
- uses: actions/setup-node@v1
with:
node-version: 10
- name: Setup
run: sh setup.sh
- name: Install Cocoapods
run: |
gem install cocoapods
2020-03-24 18:58:42 +08:00
- name: Echo current Version
run: |
echo ${GITHUB_REF:10}>version
echo "Current Version is "${GITHUB_REF:10}
2020-03-24 17:20:39 +08:00
- name: Publish
run: |
sh publish.sh
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
2020-03-24 19:16:48 +08:00
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2020-03-24 18:05:40 +08:00
BINTARY_USER: ${{ secrets.BINTARY_USER }}
BINTARY_REPO: ${{ secrets.BINTARY_REPO }}
BINTARY_APIKEY: ${{ secrets.BINTARY_APIKEY }}
2020-03-24 18:58:42 +08:00
- name: Publish legacy
run: |
sh publish-android-legacy.sh
env:
BINTARY_USER: ${{ secrets.BINTARY_USER }}
BINTARY_REPO: ${{ secrets.BINTARY_REPO }}
BINTARY_APIKEY: ${{ secrets.BINTARY_APIKEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2020-03-24 19:36:47 +08:00
- 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:
2020-03-24 19:49:41 +08:00
tag_name: ${github.ref:10}_legacy
2020-03-24 19:36:47 +08:00
release_name: Release ${{ github.ref }}_legacy
body: |
Legacy Support
draft: false
prerelease: false