Skip to content

Commit

Permalink
chore: fix GitHub Actions error
Browse files Browse the repository at this point in the history
  • Loading branch information
miurahr committed Sep 20, 2024
1 parent ee94834 commit 102bde4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build-release-and-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: setup xvfb environment
run: sudo apt-get install -f -q xvfb libsm-dev libxrender1 libxext-dev libxtst-dev libxcb1-dev fonts-dejavu xfonts-base xfonts-scalable
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
Expand All @@ -23,8 +25,9 @@ jobs:
echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build with Gradle
run: ./gradlew build
- name: Run gradle build
run: xvfb-run -a --server-args='-screen 0, 1024x768x24' ./gradlew -PenvIsCi=true build
id: gradle
- name: Publish package to OSSRH
run: ./gradlew publishToSonatype
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gradle-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
build-scan-terms-of-service-url: https://gradle.com/terms-of-service
build-scan-terms-of-service-agree: yes
- name: Run gradle build
run: xvfb-run -a --server-args='-screen 0, 1024x768x24' ./gradlew -PenvIsCi=true check
run: xvfb-run -a --server-args='-screen 0, 1024x768x24' ./gradlew -PenvIsCi=true --scan check
id: gradle
- name: "Add Build Scan URL as PR comment"
uses: actions/github-script@v7
Expand Down

0 comments on commit 102bde4

Please sign in to comment.