From dec01d7223438212470968fff525c0d3b8cdbf0b Mon Sep 17 00:00:00 2001 From: Amarachi Omereife Date: Tue, 17 Oct 2023 11:30:20 +0100 Subject: [PATCH] code refactor --- .github/workflows/attach-release.yml | 35 +++++++++++++++++----------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/.github/workflows/attach-release.yml b/.github/workflows/attach-release.yml index e7c40dab..14c48aee 100644 --- a/.github/workflows/attach-release.yml +++ b/.github/workflows/attach-release.yml @@ -1,30 +1,39 @@ name: Attach Release Artifacts -on: +on: release: types: - released workflow_dispatch: jobs: - download-artifacts: + upload-artifacts: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - - name: create artifacts directory + - name: Check out code + uses: actions/checkout@v2 + + - name: Create artifacts directory run: mkdir artifacts working-directory: ./ - - uses: actions/download-artifact@v3 + - name: Upload all artifacts + uses: actions/upload-artifact@v2 with: + name: all-artifacts path: artifacts + download-artifacts: + needs: upload-artifacts + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v2 + + - name: Download all artifacts + uses: actions/download-artifact@v2 + with: + name: all-artifacts + - name: Display structure of downloaded files - run: ls -R - working-directory: artifacts - - - - - \ No newline at end of file + run: ls -R \ No newline at end of file