Skip to content

Commit

Permalink
release: v4.0.0-beta3
Browse files Browse the repository at this point in the history
  • Loading branch information
ForteScarlet committed Mar 24, 2024
1 parent 7ac5b6b commit 0dca65b
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 8 deletions.
Empty file added .changelog/v4.0.0-beta3.md
Empty file.
44 changes: 37 additions & 7 deletions .github/workflows/publish-v4-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ env:
GRADLE_OPTS: "-Dfile.encoding=UTF-8"

jobs:
test-and-publish-v4-release:
name: Publish v4 Release
test-pre-release:
name: Test pre release
strategy:
matrix:
os: [ macos-latest, windows-latest, ubuntu-latest ]
Expand All @@ -24,20 +24,50 @@ jobs:
# 检出仓库代码
- name: Check Out Repo
uses: actions/checkout@v4

# setup Java
- name: Setup Java 21
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
#cache: 'gradle'

- name: Run All Tests
cache: 'gradle'
- name: Run All Tests pre release
uses: gradle/gradle-build-action@v3
with:
gradle-version: 8.5
arguments: assemble test
arguments: |
assemble
allTests
--info
--warning-mode all
- name: Upload test reports
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: test-reports-${{ matrix.os }}
path: '**/build/reports/tests'
retention-days: 7

test-and-publish-v4-release:
name: Publish v4 Release
needs: test-pre-release
strategy:
matrix:
os: [ macos-latest, windows-latest, ubuntu-latest ]
runs-on: ${{ matrix.os }}
steps:
# 检出仓库代码
- name: Check Out Repo
uses: actions/checkout@v4

# setup Java
- name: Setup Java 21
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
cache: 'gradle'

# setup Gradle
- name: Gradle Publish Release
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# v4.0.0-beta3

> Release & Pull Notes: [v4.0.0-beta3](https://github.com/simple-robot/simpler-robot/releases/tag/v4.0.0-beta3)

# v4.0.0-beta2

> Release & Pull Notes: [v4.0.0-beta2](https://github.com/simple-robot/simpler-robot/releases/tag/v4.0.0-beta2)
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/P.kt
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ sealed class P(override val group: String) : ProjectDetail() {
val versionWithoutSnapshot: Version

init {
val mainVersion = version(4, 0, 0) - version("beta2")
val mainVersion = version(4, 0, 0) - version("beta3")

fun initVersionWithoutSnapshot(status: Version?): Version = if (status == null) {
mainVersion
Expand Down

0 comments on commit 0dca65b

Please sign in to comment.