Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit 689e203

Browse files
committed
update workflows
1 parent ce1e6e7 commit 689e203

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/Java_CI_with_Maven_and_Publish.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ jobs:
4343
submodule: false
4444
- name: move to its part
4545
run: |
46-
mv ./ConnectToGitHub/* ./src/main/java/top/mryan2005/managesysteminjava/ConnectToNet/
47-
rm -rf ./ConnectToGitHub
46+
copy-item -path ".\\ConnectToGitHub" -destination ".\\src\\main\\java\\top\\mryan2005\\managesysteminjava\\ConnectToNet"
47+
remove-item ".\\ConnectToGitHub\\*"
4848
- name: Set up JDK ${{ matrix.version }}
4949
uses: actions/setup-java@v4
5050
with:
@@ -60,9 +60,10 @@ jobs:
6060

6161
- name: rename jar
6262
run: |
63-
mv target/DictSystemInJava-latest.jar target/DictSystemInJava-jdk${{ matrix.version }}.jar
63+
rename-item "target\\DictSystemInJava-latest.jar" -newname "target\DictSystemInJava-jdk${{ matrix.version }}.jar"
6464
6565
- name: create github release
66+
if: startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/tags/V')
6667
uses: softprops/[email protected]
6768
with:
6869
tag_name: ${{github.github_sha}}
@@ -73,3 +74,16 @@ jobs:
7374
draft: false
7475
prerelease: false
7576
token: ${{ secrets.GITEE_TOKEN }}
77+
78+
- name: create github release
79+
if: startsWith(github.ref, 'refs/tags/test-')
80+
uses: softprops/[email protected]
81+
with:
82+
tag_name: ${{github.github_sha}}
83+
name: ${{github.github_sha}}
84+
files: |
85+
D:\a\ManageSystemInJava\ManageSystemInJava\target\DictSystemInJava-jdk${{ matrix.version }}.jar
86+
make_latest: false
87+
draft: false
88+
prerelease: true
89+
token: ${{ secrets.GITEE_TOKEN }}

0 commit comments

Comments
 (0)