]> prime8.dev >> repos - ttyd.git/commitdiff
workflow: update actions packages (#1316)
authordebian-go <438092+upbeat-backbone-bose@users.noreply.github.com>
Fri, 29 Mar 2024 01:24:10 +0000 (09:24 +0800)
committerGitHub <noreply@github.com>
Fri, 29 Mar 2024 01:24:10 +0000 (09:24 +0800)
* Update checkout action version to v4.

* Update checkout action version to v4.

* Update checkout action version to v4.

* Update release.yml

* Update backend.yml

* Update frontend.yml

* bump actions/upload-artifact and actions/download-artifact to v4

* bump actions/setup-node to v4

* bump docker actions

---------

Co-authored-by: Shuanglei Tao <tsl0922@gmail.com>
.github/workflows/backend.yml
.github/workflows/docker.yml
.github/workflows/frontend.yml
.github/workflows/release.yml

index 61d4e15d7f09dd5c1ff8938b6ba1a27c00ab5961..0ee6e396e7ee900e409be0b35710fb7a5d7f0c2c 100644 (file)
@@ -23,7 +23,7 @@ jobs:
       matrix:
         target: [i686, x86_64, arm, armhf, aarch64, mips, mipsel, mips64, mips64el, s390x, win32]
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v4
       - name: Install packages
         run: |
           sudo apt-get update
@@ -32,7 +32,8 @@ jobs:
         env:
           BUILD_TARGET: ${{ matrix.target }}
         run: ./scripts/cross-build.sh
-      - uses: actions/upload-artifact@v3
+      - uses: actions/upload-artifact@v4
         with:
           name: ttyd.${{ matrix.target }}
           path: build/ttyd*
+
index 138c097b404621a8c1224bbd1627c2eaf9332468..90ff7613210beceb7ef2297bc54d2d3a8a764f7f 100644 (file)
@@ -9,7 +9,7 @@ jobs:
   build:
     runs-on: ubuntu-22.04
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v4
       - name: Install packages
         run: |
           sudo apt-get update
@@ -22,9 +22,9 @@ jobs:
             [ "$arch" = "armv7" ] && arch="arm" 
             mkdir -p dist/$arch && cp build/ttyd dist/$arch/ttyd
           done
-      - uses: docker/setup-qemu-action@v2
-      - uses: docker/setup-buildx-action@v2
-      - uses: docker/login-action@v2
+      - uses: docker/setup-qemu-action@v3
+      - uses: docker/setup-buildx-action@v3
+      - uses: docker/login-action@v3
         with:
           username: ${{ secrets.DOCKER_HUB_USER }}
           password: ${{ secrets.DOCKER_HUB_TOKEN }}
@@ -42,7 +42,7 @@ jobs:
               echo "ALPINE_TAG=tsl0922/ttyd:alpine" >> $GITHUB_ENV
           esac
       - name: build/push docker image
-        uses: docker/build-push-action@v3
+        uses: docker/build-push-action@v5
         with:
           context: .
           file: ./Dockerfile
@@ -50,7 +50,7 @@ jobs:
           push: true
           tags: ${{ env.DOCKER_TAG }}
       - name: build/push docker image (alpine)
-        uses: docker/build-push-action@v3
+        uses: docker/build-push-action@v5
         with:
           context: .
           file: ./Dockerfile.alpine
index 05857db352623972e9bcff0821cfc264df931a80..792a21af1e3e069312e237adf9bb499a73d3a1b6 100644 (file)
@@ -14,8 +14,8 @@ jobs:
   build:
     runs-on: ubuntu-22.04
     steps:
-      - uses: actions/checkout@v3
-      - uses: actions/setup-node@v3
+      - uses: actions/checkout@v4
+      - uses: actions/setup-node@v4
         with:
           node-version: 18
       - name: Run yarn install, check and build
index d641e3bd02b0fdad5bc339157690e188ad39697f..3dd3b2d58300dcee8ae6d1f9d7eeb2184845db66 100644 (file)
@@ -11,8 +11,8 @@ jobs:
     needs: [build]
     runs-on: ubuntu-22.04
     steps:
-      - uses: actions/checkout@v3
-      - uses: actions/download-artifact@v3
+      - uses: actions/checkout@v4
+      - uses: actions/download-artifact@v4
       - run: |
           mkdir build
           for file in ttyd.*/*; do