Skip to content

Commit c7228e1

Browse files
authored
Fix actions push linux binary (#2756)
* fix actions push linux binary * test * test * test * test * clean up * clean up * clean up
1 parent 5c412b4 commit c7228e1

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

.github/workflows/main.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,16 @@ jobs:
9494
run: echo "::set-env name=TRAVIS_BRANCH::${{ github.head_ref }}"
9595
- if: ${{ github.event_name == 'push' }}
9696
run: echo "::set-env name=TRAVIS_BRANCH::${GITHUB_REF##*/}"
97+
- name: release latest linux client binary
98+
env:
99+
TRAVIS_OS_NAME: linux
100+
QINIU_AK: ${{ secrets.QINIU_AK }}
101+
QINIU_SK: ${{ secrets.QINIU_SK }}
102+
run: |
103+
export TRAVIS_BUILD_DIR=${{ github.workspace }}
104+
export TRAVIS_TAG=${{ steps.tagName.outputs.tag }}
105+
export TRAVIS_PULL_REQUEST=${{ github.event.number }}
106+
bash scripts/travis/deploy_client.sh
97107
- name: push server images
98108
env:
99109
DOCKER_USERNAME: "typhoon1986"
@@ -107,15 +117,6 @@ jobs:
107117
export FIND_FASTED_MIRROR=false
108118
export TRAVIS_BUILD_STAGE_NAME=Deploy
109119
bash scripts/travis/deploy_docker.sh
110-
- name: release latest linux client binary
111-
env:
112-
TRAVIS_OS_NAME: linux
113-
QINIU_AK: ${{ secrets.QINIU_AK }}
114-
QINIU_SK: ${{ secrets.QINIU_SK }}
115-
run: |
116-
export TRAVIS_TAG=${{ steps.tagName.outputs.tag }}
117-
export TRAVIS_PULL_REQUEST=${{ github.event.number }}
118-
bash scripts/travis/deploy_client.sh
119120
# TODO(typhoonzero): remove travis envs when we have moved to github actions completely
120121
macos-client:
121122
runs-on: macos-latest
@@ -138,6 +139,7 @@ jobs:
138139
QINIU_AK: ${{ secrets.QINIU_AK }}
139140
QINIU_SK: ${{ secrets.QINIU_SK }}
140141
run: |
142+
export TRAVIS_BUILD_DIR=${{ github.workspace }}
141143
export TRAVIS_TAG=${{ steps.tagName.outputs.tag }}
142144
export TRAVIS_PULL_REQUEST=${{ github.event.number }}
143145
bash scripts/travis/deploy_client.sh
@@ -166,6 +168,7 @@ jobs:
166168
QINIU_AK: ${{ secrets.QINIU_AK }}
167169
QINIU_SK: ${{ secrets.QINIU_SK }}
168170
run: |
171+
export TRAVIS_BUILD_DIR="${{ github.workspace }}"
169172
export TRAVIS_TAG="${{ steps.tagName.outputs.tag }}"
170173
export TRAVIS_PULL_REQUEST="${{ github.event.number }}"
171174
scripts/travis/deploy_client.sh

0 commit comments

Comments
 (0)