From c9bab5de5f67ecd1b9b7a27f791ee096e39f453c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=9CM=C3=9C=C5=9E?= <96421894+Tahinli@users.noreply.github.com> Date: Sun, 15 Oct 2023 00:07:23 +0300 Subject: [PATCH] fix: workflow --- .../{rust_build_test.yml => rust.yml} | 21 ++++++++++++++++ .github/workflows/rust_release.yml | 24 ------------------- 2 files changed, 21 insertions(+), 24 deletions(-) rename .github/workflows/{rust_build_test.yml => rust.yml} (69%) delete mode 100644 .github/workflows/rust_release.yml diff --git a/.github/workflows/rust_build_test.yml b/.github/workflows/rust.yml similarity index 69% rename from .github/workflows/rust_build_test.yml rename to .github/workflows/rust.yml index 99e4efb..9db3272 100644 --- a/.github/workflows/rust_build_test.yml +++ b/.github/workflows/rust.yml @@ -60,3 +60,24 @@ jobs: with: name: rust_tcp_file_transfer_macos_x64_86 path: target/release/*transfer + + download_then_release: + needs: [build_linux, build_windows, build_macos] + runs-on: ubuntu-latest + permissions: + contents: write + steps: + + - uses: actions/checkout@v3 + - name: Forge a Folder + run: mkdir Downloads + working-directory: /home/runner/work/rust-tcp-file-transfer/rust-tcp-file-transfer/ + + - uses: actions/download-artifact@v3 + name: Download + with: + path: Downloads/ + + - uses: actions/checkout@v3 + - name: Display Downloads + run: ls -R \ No newline at end of file diff --git a/.github/workflows/rust_release.yml b/.github/workflows/rust_release.yml deleted file mode 100644 index 03e4543..0000000 --- a/.github/workflows/rust_release.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Rust Release -on: - push: - branches: [ "main" ] -jobs: - Download_then_Release: - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - - uses: actions/checkout@v3 - - name: Forge a Folder - run: mkdir Downloads - working-directory: /home/runner/work/rust-tcp-file-transfer/rust-tcp-file-transfer/ - - - uses: actions/download-artifact@v3 - name: Download - with: - path: Downloads/ - - - uses: actions/checkout@v3 - - name: Display Downloads - run: ls -R