Skip to content

Commit

Permalink
ci: 修复 ci 中 url 替换错误的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
dragove committed Feb 16, 2024
1 parent b54e26a commit 95bd748
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,18 @@ jobs:
export TRUNCATED_GITHUB_SHA=$(echo ${{ github.sha }} | cut -c1-7);
echo "VERSION_TAG=${GITHUB_REF/refs\/heads\//}-${TRUNCATED_GITHUB_SHA}" >> $GITHUB_ENV
- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 17
distribution: temurin
java-version: 21

- name: Remove aliyun maven mirror
run: |
sed -i '/maven {/,+2d' build.gradle
sed -i '/maven(url/d' build.gradle.kts
- name: Set Java version
run: |
sed -i "s/^version.*$/version '${{ steps.version.outputs.version }}'/g" build.gradle
sed -i "s/^version.*$/version = \"${{ steps.version.outputs.version }}\"/g" build.gradle.kts
- name: Build jar
run: ./gradlew bootJar
Expand Down

0 comments on commit 95bd748

Please sign in to comment.