From 1a2abb244339987fd98aeb6e822e383a23c758d3 Mon Sep 17 00:00:00 2001 From: osborn Date: Tue, 24 Mar 2020 17:20:39 +0800 Subject: [PATCH] Create publish.yml --- .github/workflows/publish.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..40eacaf0 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,24 @@ +name: Publish SDK +on: + push: + tags: + - '*' +jobs: + build: + runs-on: macos-latest + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: 10 + - name: Setup + run: sh setup.sh + - name: Install Cocoapods + run: | + gem install cocoapods + - name: Publish + run: | + sh publish.sh + env: + COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }}