Skip to content

Commit

Permalink
增加版本规定
Browse files Browse the repository at this point in the history
  • Loading branch information
yeliqin666 authored Jun 9, 2024
1 parent 62c5cae commit cd93dc0
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ on:
- "build.py"
pull_request:
workflow_dispatch:
inputs:
BUILD_VER:
description: 'Ver.(beta/dev/stable)'
required: true
default: 'dev'

jobs:
build:
needs: [build-win,build-linux]
Expand All @@ -18,11 +24,11 @@ jobs:
- name: Rename Tool
run: |
cd TIK-win
move ./TIK-win.zip ../TIK-5-${{ github.run_number }}-win.zip
move ./TIK-win.zip ../TIK-5-${{ github.run_number }}-${{ github.event.inputs.BUILD_VER }}-win.zip
cd ..
cd TIK-linux
ls
move ./TIK-linux.zip ../TIK-5-${{ github.run_number }}-linux.zip
move ./TIK-linux.zip ../TIK-5-${{ github.run_number }}-${{ github.event.inputs.BUILD_VER }}-linux.zip
cd ..
- name: Upload release
uses: ncipollo/release-action@v1
Expand Down Expand Up @@ -84,4 +90,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: TIK-linux
path: './TIK-linux.zip'
path: './TIK-linux.zip'

0 comments on commit cd93dc0

Please sign in to comment.