Skip to content

Commit a2a4e97

Browse files
authored
Merge pull request #568 from qiniu/ci/docs
try to fix the deploy gh-pages issue
2 parents da04e7f + 90142a1 commit a2a4e97

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

.github/workflows/ci-test.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
name: Java CI with Gradle
2-
on:
3-
push:
4-
paths-ignore:
5-
- '**.md'
6-
pull_request:
7-
paths-ignore:
8-
- '**.md'
2+
on: [push pull_request]
93
jobs:
104
build:
115
runs-on: ubuntu-latest
@@ -17,13 +11,14 @@ jobs:
1711
fail-fast: false
1812
max-parallel: 1
1913
matrix:
20-
java_version: ['8', '11']
14+
java_version: ['8', '11', '17']
2115
steps:
2216
- name: checkout
2317
uses: actions/checkout@v2
2418
- name: Set up JDK
25-
uses: actions/setup-java@v1
19+
uses: actions/setup-java@v2
2620
with:
21+
distribution: 'zulu'
2722
java-version: ${{ matrix.java_version }}
2823
- name: Grant execute permission for gradlew
2924
run: chmod +x gradlew

.github/workflows/generate-docs.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ name: Deploy static content to Pages
22

33
on:
44
push:
5-
tags:
6-
- 'v*'
7-
branches:
8-
- master
5+
# tags:
6+
# - 'v*'
97

108
# Allows you to run this workflow manually from the Actions tab
119
workflow_dispatch:
@@ -34,9 +32,15 @@ jobs:
3432
with:
3533
submodules: 'recursive'
3634
- name: Set up JDK
37-
uses: actions/setup-java@v1
35+
uses: actions/setup-java@v2
3836
with:
39-
java-version: '11'
37+
distribution: 'zulu'
38+
java-version: '17'
39+
- name: Grant execute permission for gradlew
40+
run: chmod +x gradlew
41+
- name: Unit Test
42+
run: |
43+
./gradlew build -d
4044
- name: Generate Docs
4145
run: |
4246
rm -rf build/docs

0 commit comments

Comments
 (0)