diff --git a/.github/workflows/attach-release.yml b/.github/workflows/attach-release.yml index 818e83e5..6d775cb1 100644 --- a/.github/workflows/attach-release.yml +++ b/.github/workflows/attach-release.yml @@ -13,13 +13,15 @@ jobs: - uses: actions/checkout@v3 - name: create artifacts directory - run: mkdir artifacts + run: mkdir artifact working-directory: ./ - - uses: actions/download-artifact@v3 + - uses: dawidd6/action-download-artifact@v2 with: - path: artifacts + workflow: build-uc2.yml + workflow_conclusion: + path: artifact - name: Display structure of downloaded files run: ls -R - working-directory: artifacts \ No newline at end of file + working-directory: artifact \ No newline at end of file diff --git a/.github/workflows/build-uc2.yml b/.github/workflows/build-uc2.yml index b52bc4ff..59c2122a 100644 --- a/.github/workflows/build-uc2.yml +++ b/.github/workflows/build-uc2.yml @@ -242,30 +242,6 @@ jobs: ls -laR ${{ matrix.config.archiver }} ../${{ matrix.config.artifact }} . ../test* - - name: create sample file - run: touch artifacts - working-directory: ./ - - - name: 'Upload sample' - if: always() - uses: actions/upload-artifact@v1 - with: - path: ./artifacts - name: artifacts - - - name: create artifact directory - run: mkdir artifact - working-directory: ./ - - - name: 'download artifact' - uses: actions/download-artifact@v3 - with: - path: artifact - - - name: Display structure of downloaded files - run: ls -R - working-directory: artifact - - name: '📤 Upload artifact' if: always() uses: actions/upload-artifact@v1 @@ -569,3 +545,21 @@ jobs: with: path: ./${{ matrix.config.artifact }} name: ${{ matrix.config.artifact }} + + Download-artifact: + runs-on: ubuntu-latest + name: download artifact + steps: + + - name: create artifact directory + run: mkdir artifact + working-directory: ./ + + - name: 'download artifact' + uses: actions/download-artifact@v3 + with: + path: artifact + + - name: Display structure of downloaded files + run: ls -R + working-directory: artifact