Skip to content

Commit a897c4b

Browse files
authored
CI: Update build and publish actions (#77)
1 parent 6848089 commit a897c4b

File tree

2 files changed

+3
-38
lines changed

2 files changed

+3
-38
lines changed

Diff for: .github/workflows/ci.yml

-20
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,6 @@ jobs:
3636
java-version: 17
3737
distribution: adopt
3838

39-
- name: Cache Gradle
40-
uses: actions/cache@v3
41-
with:
42-
path: |
43-
~/.gradle/caches
44-
~/.gradle/wrapper
45-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
46-
restore-keys: |
47-
${{ runner.os }}-gradle-
48-
4939
- name: Gradle Wrapper Validation
5040
uses: gradle/wrapper-validation-action@v1
5141

@@ -76,16 +66,6 @@ jobs:
7666
java-version: 17
7767
distribution: adopt
7868

79-
- name: Cache Gradle
80-
uses: actions/cache@v3
81-
with:
82-
path: |
83-
~/.gradle/caches
84-
~/.gradle/wrapper
85-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
86-
restore-keys: |
87-
${{ runner.os }}-gradle-
88-
8969
- name: Cache Konan
9070
uses: actions/cache@v3
9171
if: startsWith(matrix.config.os, 'macos')

Diff for: .github/workflows/publish.yml

+3-18
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,12 @@ jobs:
6767
- name: Update README for ${{ env.RELEASE_VERSION }}
6868
run: ./.github/version.sh "${RELEASE_VERSION}"
6969

70-
- name: Extract branch name
71-
shell: bash
72-
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
73-
id: extract_branch
74-
75-
- name: Commit changes to README to ${{ env.branch }}
70+
- name: Commit changes to README
7671
uses: EndBug/add-and-commit@v9
7772
with:
7873
add: "./README.md"
7974
message: "Update README.md with version ${{env.RELEASE_VERSION}}"
80-
new_branch: ${{ steps.extract_branch.outputs.branch }}
75+
new_branch: main
8176

8277
documentation:
8378
name: "Generate Documentation"
@@ -93,16 +88,6 @@ jobs:
9388
java-version: 17
9489
distribution: adopt
9590

96-
- name: Cache Gradle
97-
uses: actions/cache@v3
98-
with:
99-
path: |
100-
~/.gradle/caches
101-
~/.gradle/wrapper
102-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
103-
restore-keys: |
104-
${{ runner.os }}-gradle-
105-
10691
- name: Gradle Wrapper Validation
10792
uses: gradle/wrapper-validation-action@v1
10893

@@ -114,4 +99,4 @@ jobs:
11499
- name: Deploy
115100
uses: JamesIves/github-pages-deploy-action@v4
116101
with:
117-
folder: dokka/
102+
folder: dokka/

0 commit comments

Comments
 (0)