From c9646bd2c885bd898dd933b7ecf3b8ad0b785aea Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Mon, 22 May 2023 01:09:36 +0800 Subject: [PATCH] ci: use archive --- .gitea/workflows/built-bin.yaml | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/.gitea/workflows/built-bin.yaml b/.gitea/workflows/built-bin.yaml index 9c99ad0..df8e7aa 100644 --- a/.gitea/workflows/built-bin.yaml +++ b/.gitea/workflows/built-bin.yaml @@ -39,20 +39,11 @@ jobs: - name: Build run: cargo build --release - - name: Cache Executable Binary - uses: https://github.com/actions/cache/save@v3 + - name: Archive Executable Binary + uses: https://github.com/actions/upload-artifact@v3 with: path: ./target/release/network-monitor - key: ${{ runner.os }}-release-${{ steps.tag.outputs.tag }} - - - - id: restore-executable-binary - name: Restore Executable Binary - uses: https://github.com/actions/cache/restore@v3 - with: - path: ./target/release/network-monitor - key: ${{ runner.os }}-release-${{ steps.tag.outputs.tag }} - fail-on-cache-miss: true + name: ${{ runner.os }}-release-${{ steps.tag.outputs.tag }} docker: runs-on: ubuntu-latest @@ -72,13 +63,11 @@ jobs: id: tag uses: https://github.com/Maxyme/get-release-or-tag@v2 - - id: restore-executable-binary - name: Restore Executable Binary - uses: https://github.com/actions/cache/restore@v3 + - name: Download Executable Binary + uses: https://github.com/actions/download-artifact@v3 with: path: ./target/release/network-monitor - key: ${{ runner.os }}-release-${{ steps.tag.outputs.tag }} - fail-on-cache-miss: true + name: ${{ runner.os }}-release-${{ steps.tag.outputs.tag }} - name: Log in to the Container registry uses: https://github.com/docker/login-action@v2