mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
fix(ci): release.yml
This commit is contained in:
parent
3191a946a8
commit
60d44538f0
11
.github/workflows/release.yml
vendored
11
.github/workflows/release.yml
vendored
@ -5,6 +5,7 @@ concurrency:
|
|||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- 'v*'
|
||||||
@ -18,10 +19,8 @@ jobs:
|
|||||||
id: get-info
|
id: get-info
|
||||||
run: |
|
run: |
|
||||||
if [[ "${{ github.ref_name }}" =~ "beta" ]]; then
|
if [[ "${{ github.ref_name }}" =~ "beta" ]]; then
|
||||||
echo "defaultTag=$(echo 'latest')" >> $GITHUB_OUTPUT
|
|
||||||
echo "proRepos=$(echo '${{ vars.PRO_PLUGIN_REPOS }}')" >> $GITHUB_OUTPUT
|
echo "proRepos=$(echo '${{ vars.PRO_PLUGIN_REPOS }}')" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
echo "defaultTag=$(echo 'next')" >> $GITHUB_OUTPUT
|
|
||||||
echo "proRepos=$(echo '${{ vars.NEXT_PRO_PLUGIN_REPOS }}')" >> $GITHUB_OUTPUT
|
echo "proRepos=$(echo '${{ vars.NEXT_PRO_PLUGIN_REPOS }}')" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
- uses: actions/create-github-app-token@v1
|
- uses: actions/create-github-app-token@v1
|
||||||
@ -108,6 +107,14 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: publish-npm
|
needs: publish-npm
|
||||||
steps:
|
steps:
|
||||||
|
- name: Get info
|
||||||
|
id: get-info
|
||||||
|
run: |
|
||||||
|
if [[ "${{ github.ref_name }}" =~ "beta" ]]; then
|
||||||
|
echo "defaultTag=$(echo 'latest')" >> $GITHUB_OUTPUT
|
||||||
|
else
|
||||||
|
echo "defaultTag=$(echo 'next')" >> $GITHUB_OUTPUT
|
||||||
|
fi
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
|
Loading…
x
Reference in New Issue
Block a user