Skip to content

Commit

Permalink
Upgrade actions in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangt2333 committed Feb 29, 2024
1 parent b2995ed commit 6353eee
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
name: Release

on:
workflow_dispatch: # add manually button
workflow_dispatch: # add manual trigger button

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin

- name: Run Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: |
docs:all
publish
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Publish
run: |
./gradlew docs:all publish
env:
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.ORG_GRADLE_PROJECT_signingKeyId }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.ORG_GRADLE_PROJECT_signingKey }}
Expand Down
17 changes: 8 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Test
on:
push:
pull_request:
workflow_dispatch: # add manually button
workflow_dispatch: # add manual trigger button

jobs:
test:
Expand All @@ -16,18 +16,17 @@ jobs:
with:
submodules: recursive

- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin

- name: Run Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: |
test
jacocoTestReport
--scan
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Test
run: |
./gradlew test jacocoTestReport --scan
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
Expand Down

0 comments on commit 6353eee

Please sign in to comment.