From dbccaebf2c23192ca1bd4f31f01791d5e7d6e757 Mon Sep 17 00:00:00 2001 From: Chris Schinnerl Date: Thu, 28 Mar 2024 13:33:02 +0100 Subject: [PATCH] workflows: update deprecated github actions --- .github/workflows/publish.yml | 20 ++++++++++---------- .github/workflows/test.yml | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 65e4f8ed4..3bf909519 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -28,7 +28,7 @@ jobs: permissions: packages: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: docker/setup-qemu-action@v2 - uses: docker/setup-buildx-action@v2 - uses: docker/login-action@v2 @@ -71,8 +71,8 @@ jobs: matrix: network: ["mainnet" , "zen"] steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version: 'stable' - name: Setup @@ -112,7 +112,7 @@ jobs: go build -tags="$BUILD_TAGS" -trimpath -o bin/ -a -ldflags '-s -w -linkmode external -extldflags "-static"' ./cmd/renterd cp README.md LICENSE bin/ zip -qj $ZIP_OUTPUT bin/* - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: renterd path: release/ @@ -122,8 +122,8 @@ jobs: matrix: network: ["mainnet" , "zen"] steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version: 'stable' - name: Setup Notarization @@ -208,7 +208,7 @@ jobs: /usr/bin/codesign --deep -f -v --timestamp -o runtime,library -s $APPLE_CERT_ID bin/renterd ditto -ck bin $ZIP_OUTPUT xcrun notarytool submit -k ~/private_keys/AuthKey_$APPLE_API_KEY.p8 -d $APPLE_API_KEY -i $APPLE_API_ISSUER --wait --timeout 10m $ZIP_OUTPUT - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: renterd path: release/ @@ -218,8 +218,8 @@ jobs: matrix: network: ["mainnet" , "zen"] steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version: 'stable' - name: Set build tag environment variable @@ -249,7 +249,7 @@ jobs: azuresigntool sign -kvu "${{ secrets.AZURE_KEY_VAULT_URI }}" -kvi "${{ secrets.AZURE_CLIENT_ID }}" -kvt "${{ secrets.AZURE_TENANT_ID }}" -kvs "${{ secrets.AZURE_CLIENT_SECRET }}" -kvc ${{ secrets.AZURE_CERT_NAME }} -tr http://timestamp.digicert.com -v bin/renterd.exe cp README.md LICENSE bin/ 7z a $ZIP_OUTPUT bin/* - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: renterd path: release/ diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cc6c5c1f3..b389ebff2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,9 +18,9 @@ jobs: if: matrix.os == 'windows-latest' run: git config --global core.autocrlf false # fixes go lint fmt error - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - name: Lint