From 0f78353bdc0aea1e97962aed4053646a7296aaaf Mon Sep 17 00:00:00 2001 From: Jakub Chrzanowski Date: Thu, 30 Sep 2021 21:51:32 +0200 Subject: [PATCH] Prepare plugin archive content to be archived once #186 --- .github/workflows/build.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 83ad043..1770d30 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -105,16 +105,29 @@ jobs: uses: JetBrains/qodana-action@v2.1-eap # Collect Qodana Result - - uses: actions/upload-artifact@v2 + - name: Collect Qodana Result + uses: actions/upload-artifact@v2 with: name: qodana-result path: ${{ github.workspace }}/qodana + # Prepare plugin archive content for creating artifact + - name: Prepare Plugin Artifact + id: artifact + shell: bash + run: | + cd ${{ github.workspace }}/build/distributions + FILENAME=`ls *.zip` + unzip "$FILENAME" -d content + + echo "::set-output name=filename::$FILENAME" + # Store already-built plugin as an artifact for downloading - - name: Upload artifacts + - name: Upload artifact uses: actions/upload-artifact@v2.2.4 with: - path: ./build/distributions/* + name: ${{ steps.artifact.outputs.filename }} + path: ./build/distributions/content/*/* # Prepare a draft release for GitHub Releases page for the manual verification # If accepted and published, release workflow would be triggered