From 30567f749400d96e3637ecee1b792606c05fa48b Mon Sep 17 00:00:00 2001 From: ThibaultBee <37510686+ThibaultBee@users.noreply.github.com> Date: Sat, 23 Sep 2023 18:15:37 +0200 Subject: [PATCH] chore(ci): upgrade actions --- .github/workflows/build.yml | 8 ++++---- .github/workflows/docs.yml | 12 ++++++------ .github/workflows/release.yml | 6 ++---- .github/workflows/test.yml | 4 ++-- 4 files changed, 14 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 24539833..1376580f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,9 +6,9 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up JDK - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: java-version: '17' distribution: 'adopt' @@ -21,12 +21,12 @@ jobs: - name: Build with Gradle run: ./gradlew build - name: Upload library artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: lib path: lib/build/outputs/aar - name: Upload APKs - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: apks path: | diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 12eca7b4..7292323f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -11,9 +11,9 @@ jobs: generate-docs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up JDK - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: java-version: '17' distribution: 'adopt' @@ -24,8 +24,8 @@ jobs: run: ./gradlew dokkaHtml - name: Deploy API documentation to Github Pages if: ${{github.event_name == 'push'}} - uses: JamesIves/github-pages-deploy-action@3.7.1 + uses: JamesIves/github-pages-deploy-action@v4 with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - BRANCH: gh-pages - FOLDER: lib/build/dokka/html + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: gh-pages + folder: lib/build/dokka/html diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 198825fe..4a646f20 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,9 +11,9 @@ jobs: contents: read packages: write steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up JDK - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: java-version: '17' distribution: 'adopt' @@ -23,8 +23,6 @@ jobs: git config --global user.email "<>" - name: Grant execute permission for gradlew run: chmod +x gradlew - - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@v1 - name: Decode the secret key run: echo $GPG_KEYRING_FILE_CONTENT | base64 --decode > ~/secring.gpg env: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 02d24a63..5b3edf07 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,9 +9,9 @@ jobs: instrumented-tests: runs-on: macos-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up JDK - uses: actions/setup-java@v2 + uses: actions/setup-java@v3 with: java-version: '17' distribution: 'adopt'