diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index bdf0bc8..a95c42b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -11,7 +11,7 @@ jobs: uses: ./.github/workflows/build-and-package.yaml release: - name: publish vscode extension to marketplace + name: Publish VSCode Extension to Marketplace & Create GitHub Release runs-on: ubuntu-latest needs: build-and-package if: success() && startsWith(github.ref, 'refs/tags/') @@ -21,22 +21,18 @@ jobs: with: name: packages - - id: set-matrix + - name: Create list of vsix files + id: set-list run: | - FILES=$(find . -iname '*.vsix') - JSON_STRING='[' - for FILE in $FILES; do - JSON_STRING+='{"file":"'$FILE'"},' - done - JSON_STRING=$(echo $JSON_STRING | sed 's/,$//')']' - echo "MATRIX_JSON=$JSON_STRING" >> $GITHUB_ENV - echo "::set-output name=matrix::$JSON_STRING" + FILES=$(find . -name "*.vsix" -exec basename {} \; | paste -sd "," -) + echo "FILES_LIST=$FILES" >> $GITHUB_ENV + echo "::set-output name=files::$FILES" - name: Publish to GitHub Releases uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1 if: success() && startsWith(github.ref, 'refs/tags/') with: - files: ${{ steps.set-matrix.outputs.matrix }} + files: ${{ steps.set-list.outputs.files }} generate_release_notes: true token: ${{ secrets.GITHUB_TOKEN }}