From 8e387d5faace458ea1f00ea48c0d9d1f6e9664fa Mon Sep 17 00:00:00 2001 From: Amarachi Omereife Date: Tue, 17 Oct 2023 11:54:45 +0100 Subject: [PATCH] Attach Release --- .github/workflows/attach-release.yml | 30 ++++++++-------------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/.github/workflows/attach-release.yml b/.github/workflows/attach-release.yml index 14c48aee..818e83e5 100644 --- a/.github/workflows/attach-release.yml +++ b/.github/workflows/attach-release.yml @@ -1,39 +1,25 @@ name: Attach Release Artifacts -on: +on: release: types: - released workflow_dispatch: jobs: - upload-artifacts: + download-artifacts: runs-on: ubuntu-latest steps: - - name: Check out code - uses: actions/checkout@v2 - - - name: Create artifacts directory + - uses: actions/checkout@v3 + + - name: create artifacts directory run: mkdir artifacts working-directory: ./ - - name: Upload all artifacts - uses: actions/upload-artifact@v2 + - uses: actions/download-artifact@v3 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 \ No newline at end of file + run: ls -R + working-directory: artifacts \ No newline at end of file