Skip to content

Commit 60fd504

Browse files
committed
upadte actions
1 parent c1729fc commit 60fd504

File tree

5 files changed

+16
-20
lines changed

5 files changed

+16
-20
lines changed

.github/workflows/build-pull-request.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ jobs:
88

99
steps:
1010
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7
11+
- uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda #v3.4.2
1112
- run: |
1213
./gradlew build

.github/workflows/publish-docs.yaml renamed to .github/workflows/publish-pages-with-writerside.yaml

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,41 +8,31 @@ on:
88
env:
99
INSTANCE: 'Writerside/doc'
1010
ARTIFACT: 'webHelpDOC2-all.zip'
11-
DOCKER_VERSION: '241.16003'
11+
DOCKER_VERSION: '241.18775'
1212

1313
jobs:
1414
build-docs:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- name: Checkout repository
18-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7
17+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7
1918
with:
2019
fetch-depth: 0
2120

22-
- name: Build docs using Writerside Docker builder
23-
uses: JetBrains/writerside-github-action@5a6920dbce3ef3169acbeb7e45c6cbdaf7e76bfa #v4
21+
- uses: JetBrains/writerside-github-action@5a6920dbce3ef3169acbeb7e45c6cbdaf7e76bfa #v4
2422
with:
2523
instance: ${{ env.INSTANCE }}
2624
artifact: ${{ env.ARTIFACT }}
2725
docker-version: ${{ env.DOCKER_VERSION }}
2826

29-
- name: Prepare static content
30-
run: |
27+
- uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda #v3.4.2
28+
- run: |
29+
export JAVA_HOME=$JAVA_HOME_21_X64 # Remove when ubuntu-latest updates to Java 21
3130
./gradlew dokkatooGeneratePublicationHtml
3231
mkdir -p build/static
3332
cp -rf build/dokka/html build/static/kdoc
3433
unzip artifacts/webHelpDOC2-all.zip -d build/static
3534
36-
- name: Deploy Kdoc to github pages
37-
uses: JamesIves/github-pages-deploy-action@5c6e9e9f3672ce8fd37b9856193d2a537941e66c #v4.6.1
35+
- uses: JamesIves/github-pages-deploy-action@94f3c658273cf92fb48ef99e5fbc02bd2dc642b2 #v4.6.3
3836
with:
3937
branch: gh-pages # The branch the action should deploy to.
4038
folder: build/static # The folder the action should deploy.
41-
42-
- name: Save artifact with build results
43-
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 #v4.3.3
44-
with:
45-
name: docs
46-
path: |
47-
artifacts/${{ env.ARTIFACT }}
48-
retention-days: 7

.github/workflows/publish-release.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7
15+
with:
16+
# See https://github.com/cli/cli/issues/9558
17+
ref: ${{ github.ref }}
18+
- uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda #v3.4.2
1519
- run: |
1620
./gradlew librarianPublishToMavenCentral
1721
gh release create $GITHUB_REF_NAME --title $GITHUB_REF_NAME --verify-tag --notes-from-tag

.github/workflows/publish-snapshot.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ jobs:
99

1010
steps:
1111
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7
12+
- uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda #v3.4.2
1213
- run: |
13-
./gradlew librarianPublishToMavenSnapshots
14+
./gradlew librarianPublishToSnapshots
1415
env:
1516
LIBRARIAN_SONATYPE_USERNAME: ${{ secrets.LIBRARIAN_SONATYPE_USERNAME }}
1617
LIBRARIAN_SONATYPE_PASSWORD: ${{ secrets.LIBRARIAN_SONATYPE_PASSWORD }}

.github/workflows/tag-and-bump.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ on:
1010

1111
jobs:
1212
tag-and-bump:
13-
runs-on: macos-latest
13+
runs-on: ubuntu-latest
1414

1515
steps:
1616
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7
17-
- uses: gradleup/librarian/tag-and-bump@main
17+
- uses: gradleup/librarian/tag-and-bump@2cdb4fa8a36657aec1b52d2c5ec836f04713a80c #v0.0.4
1818
with:
1919
versionToRelease: ${{ inputs.versionToRelease }}
2020
# Trigger a workflow manually because actions cannot trigger workflows to avoid endless loops

0 commit comments

Comments
 (0)