fix:workflow

This commit is contained in:
手瓜一十雪
2024-04-16 12:41:18 +08:00
parent 9d7729f548
commit a362f920dc
2 changed files with 24 additions and 1 deletions

View File

@@ -1,18 +1,24 @@
name: "release"
on:
push:
tags:
- "v*"
permissions: write-all
jobs:
check-version:
runs-on: ubuntu-latest
steps:
- name: Clone Repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Extract version from tag
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
- name: Use Node.js 20.X
uses: actions/setup-node@v4
with:
@@ -21,7 +27,8 @@ jobs:
- name: Check Version
run: |
ls
node ./checkVersion.js
node ./script/checkVersion.js
sh ./checkVersion.sh
build-linux:
runs-on: ubuntu-latest
strategy: