mirror of
https://ghfast.top/https://github.com/zsjy/halo-theme-dream2.0-plus.git
synced 2025-03-16 04:19:41 +08:00
更新 .github/workflows/build.yml
This commit is contained in:
parent
0238ea59d6
commit
a79b930ddd
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@ -6,7 +6,7 @@ name: halo-theme-dream2.0-plus CI
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "master", "dev" ]
|
branches: [ "master", "dev" ]
|
||||||
paths: ["version"]
|
paths: ["theme.yaml"]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -37,7 +37,7 @@ jobs:
|
|||||||
- name: version
|
- name: version
|
||||||
id: version
|
id: version
|
||||||
run: |
|
run: |
|
||||||
version=$(cat version)
|
version=$(grep 'version:' theme.yaml | sed 's/.*:\s*//')
|
||||||
echo "version=$version" >> $GITHUB_ENV
|
echo "version=$version" >> $GITHUB_ENV
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
|
Loading…
x
Reference in New Issue
Block a user