From: debian-go <438092+upbeat-backbone-bose@users.noreply.github.com> Date: Fri, 29 Mar 2024 01:24:10 +0000 (+0800) Subject: workflow: update actions packages (#1316) X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=89fb69b4806a30143ffecd18738df7a1ef4213dc;p=ttyd.git workflow: update actions packages (#1316) * 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 --- diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 61d4e15..0ee6e39 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -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* + diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 138c097..90ff761 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -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 diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index 05857db..792a21a 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d641e3b..3dd3b2d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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