Skip to content

Commit

Permalink
Merge pull request #400 from TabooLib/dev/next
Browse files Browse the repository at this point in the history
6.1.0
  • Loading branch information
Bkm016 authored Jan 26, 2024
2 parents 4f3ed5f + aaffb12 commit 1bce9a5
Show file tree
Hide file tree
Showing 635 changed files with 3,144 additions and 14,907 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: build
on:
push:
branches:
- master
release:
types: [created]
jobs:
build:
if: "contains(github.event.head_commit.message, 'publish')"
# if: "contains(github.event.head_commit.message, 'publish')"
runs-on: ubuntu-latest
steps:
# 环境配置
Expand Down Expand Up @@ -37,7 +36,7 @@ jobs:
env:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
run: ./gradlew publish -Pbuild=$GITHUB_RUN_NUMBER -PtaboolibUsername=$NEXUS_USERNAME -PtaboolibPassword=$NEXUS_PASSWORD
run: ./gradlew publish -PtaboolibUsername=$NEXUS_USERNAME -PtaboolibPassword=$NEXUS_PASSWORD

# 发布到仓库: 重试-1
- name: publish (retry 1)
Expand All @@ -47,7 +46,7 @@ jobs:
env:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
run: ./gradlew publish -Pbuild=$GITHUB_RUN_NUMBER -PtaboolibUsername=$NEXUS_USERNAME -PtaboolibPassword=$NEXUS_PASSWORD
run: ./gradlew publish -PtaboolibUsername=$NEXUS_USERNAME -PtaboolibPassword=$NEXUS_PASSWORD

# 发布到仓库: 重试-2
- name: publish (retry 2)
Expand All @@ -57,7 +56,7 @@ jobs:
env:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
run: ./gradlew publish -Pbuild=$GITHUB_RUN_NUMBER -PtaboolibUsername=$NEXUS_USERNAME -PtaboolibPassword=$NEXUS_PASSWORD
run: ./gradlew publish -PtaboolibUsername=$NEXUS_USERNAME -PtaboolibPassword=$NEXUS_PASSWORD

# 发布到仓库: 重试-3
- name: publish (retry 3)
Expand All @@ -66,23 +65,4 @@ jobs:
env:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
run: ./gradlew publish -Pbuild=$GITHUB_RUN_NUMBER -PtaboolibUsername=$NEXUS_USERNAME -PtaboolibPassword=$NEXUS_PASSWORD

# 获取 commit 信息
- name: get commit messages
id: get_commits
run: |
commit_messages=$(git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:"- %s")
echo "::set-output name=messages::$commit_messages"
# 发布到 GitHub
- name: create release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: 6.0.12-${{ github.run_number }}
release_name: 6.0.12-${{ github.run_number }}
body: |
## 🤨 本次更新都有哪些主要改动?
${{ steps.get_commits.outputs.messages }}
run: ./gradlew publish -PtaboolibUsername=$NEXUS_USERNAME -PtaboolibPassword=$NEXUS_PASSWORD
8 changes: 4 additions & 4 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- master
jobs:
build:
if: "contains(github.event.head_commit.message, 'dev')"
# if: "contains(github.event.head_commit.message, 'dev')"
runs-on: ubuntu-latest
steps:
# 环境配置
Expand All @@ -31,10 +31,10 @@ jobs:
run: chmod +x ./gradlew

# 编译测试
- name: build test
id: publish_1
- name: publish dev
id: publish
continue-on-error: true
env:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
run: ./gradlew build -Pbuild=$GITHUB_RUN_NUMBER -PtaboolibUsername=$NEXUS_USERNAME -PtaboolibPassword=$NEXUS_PASSWORD
run: ./gradlew publish -Pdev -PtaboolibUsername=$NEXUS_USERNAME -PtaboolibPassword=$NEXUS_PASSWORD
136 changes: 0 additions & 136 deletions README-CN.md

This file was deleted.

Loading

0 comments on commit 1bce9a5

Please sign in to comment.