ci: use archive
This commit is contained in:
parent
6717bb5e2f
commit
c9646bd2c8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user