apply script change
This commit is contained in:
16
.github/workflows/publish.yml
vendored
16
.github/workflows/publish.yml
vendored
@@ -1,8 +1,8 @@
|
||||
name: Publish SDK
|
||||
name: Release
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*.*.*'
|
||||
- 'v*.*.*'
|
||||
jobs:
|
||||
build:
|
||||
runs-on: macos-latest
|
||||
@@ -16,6 +16,14 @@ jobs:
|
||||
with:
|
||||
node-version: 10
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
- name: Config Github Account
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
git config user.email "pengfeizhou@foxmail.com"
|
||||
git config user.name "pengfei.zhou"
|
||||
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
|
||||
git checkout master
|
||||
- name: Setup
|
||||
run: sh setup.sh
|
||||
- name: Install Cocoapods
|
||||
@@ -23,8 +31,8 @@ jobs:
|
||||
gem install cocoapods
|
||||
- name: Echo current Version
|
||||
run: |
|
||||
echo ${GITHUB_REF:10}>version
|
||||
echo "Current Version is "${GITHUB_REF:10}
|
||||
echo ${GITHUB_REF:11}>version
|
||||
echo "Current Version is "${GITHUB_REF:11}
|
||||
- name: Publish
|
||||
run: |
|
||||
sh publish.sh
|
||||
|
Reference in New Issue
Block a user