diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 61cedf13..a5f6b3ab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -358,7 +358,7 @@ jobs: await github.repos.deleteRelease({ owner, repo, release_id: id }) - name: Update Latest Tag - if: startsWith(github.ref, 'refs/tags/v') + if: startsWith(github.ref, 'refs/heads/master') uses: richardsimko/update-tag@v1 with: tag_name: latest @@ -418,7 +418,14 @@ jobs: run: | mv ./clash-rs/clash-x86_64-unknown-linux-musl ./clash-rs/clash-amd64 mv ./clash-rs/clash-aarch64-unknown-linux-musl ./clash-rs/clash-arm64 - + + - name: Log in to Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ env.OWNER }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build and push release uses: docker/build-push-action@v6 with: