👷 update ci

This commit is contained in:
yanyongyu 2021-02-10 11:38:56 +08:00
parent d60fca90f6
commit 2fa7b7ca00

View File

@ -29,16 +29,17 @@ jobs:
yarn install yarn install
yarn build yarn build
- name: Get Branch Name
run: echo "::set-env name=BRANCH_NAME::$(echo ${GITHUB_REF#refs/heads/})"
- name: Get Site ID - name: Get Site ID
if: ${{ GITHUB_REF#refs/heads/ }} == "master" if: BRANCH_NAME == "master"
run: | run: |
echo "::set-env name=BRANCH_NAME::$(echo ${GITHUB_REF#refs/heads/})"
echo "::set-env name=SITE_ID::${{ secrets.PROD_SITE_ID }}" echo "::set-env name=SITE_ID::${{ secrets.PROD_SITE_ID }}"
- name: Get Site ID - name: Get Site ID
if: ${{ GITHUB_REF#refs/heads/ }} == "dev" if: $BRANCH_NAME == "dev"
run: | run: |
echo "::set-env name=BRANCH_NAME::$(echo ${GITHUB_REF#refs/heads/})"
echo "::set-env name=SITE_ID::${{ secrets.DEV_SITE_ID }}" echo "::set-env name=SITE_ID::${{ secrets.DEV_SITE_ID }}"
- name: Publish - name: Publish