From 3aafd429bf5c962c3e75c17f7f15fc09db627bf3 Mon Sep 17 00:00:00 2001 From: Josh Yaganeh <319444+jyaganeh@users.noreply.github.com> Date: Mon, 9 Dec 2024 13:48:54 -0800 Subject: [PATCH] Update actions in ci and release workflows --- .github/workflows/ci.yaml | 11 +++++++---- .github/workflows/release.yaml | 8 ++++---- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 253666f..46f9084 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -13,16 +13,16 @@ jobs: ci: runs-on: macOS-13 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up JDK 11 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: '11' - name: Set up .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: global-json-file: global.json @@ -73,7 +73,10 @@ jobs: - name: Build run: ./gradlew build pack buildSample - - uses: actions/upload-artifact@v2 + - name: Upload build dir artifact + uses: actions/upload-artifact@v4 with: name: build path: build + retention-days: 7 # For debugging, so we don't need to keep them for very long + compression-level: 0 # Nupkgs are just .zip files, so no need to compress them diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 949a222..039bc20 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -18,7 +18,7 @@ jobs: contents: write runs-on: macOS-13 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Get Version id: get_version @@ -56,13 +56,13 @@ jobs: # uses: google-github-actions/setup-gcloud@v1 - name: Set up JDK 11 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: '11' - name: Set up .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: global-json-file: global.json @@ -83,7 +83,7 @@ jobs: - name: Create Github Release id: create_release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: tag_name: ${{ steps.get_version.outputs.VERSION }} release_name: ${{ steps.get_version.outputs.VERSION }}