mirror of
https://ghfast.top/https://github.com/zsjy/halo-theme-dream2.0-plus.git
synced 2025-03-16 00:49:40 +08:00
测试工作流
This commit is contained in:
parent
58a0274585
commit
5ec3f80a9b
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@ -5,7 +5,7 @@ name: Node.js CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
branches: [ "master", "dev" ]
|
||||
paths: ["version"]
|
||||
|
||||
jobs:
|
||||
@ -20,6 +20,17 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Determine Branch Type
|
||||
id: determine_branch_type
|
||||
run: |
|
||||
branch_type=unknown
|
||||
if [[ $GITHUB_REF == refs/heads/master ]]; then
|
||||
branch_type=master
|
||||
elif [[ $GITHUB_REF == refs/heads/dev ]]; then
|
||||
branch_type=dev
|
||||
fi
|
||||
echo "::set-output name=type::$branch_type"
|
||||
shell: bash
|
||||
- name: version
|
||||
id: version
|
||||
run: |
|
||||
@ -44,6 +55,7 @@ jobs:
|
||||
path: dist
|
||||
|
||||
- name: Create Release
|
||||
if: ${{ steps.determine_branch_type.outputs.type == 'master' }}
|
||||
id: create_release
|
||||
uses: actions/create-release@latest
|
||||
env:
|
||||
@ -56,6 +68,7 @@ jobs:
|
||||
prerelease: false
|
||||
|
||||
- name: Upload Release Asset
|
||||
if: ${{ steps.determine_branch_type.outputs.type == 'master' }}
|
||||
uses: dwenegar/upload-release-assets@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
@ -30,7 +30,7 @@ spec:
|
||||
settingName: theme-dream2-plus-setting
|
||||
configMapName: theme-dream2-plus-configMap
|
||||
# 版本号
|
||||
version: 1.2.1.0
|
||||
version: 1.2.1
|
||||
# 最低支持的 Halo 版本
|
||||
require: ">=2.12.0"
|
||||
# 许可
|
||||
|
Loading…
x
Reference in New Issue
Block a user