Skip to content

Commit

Permalink
fix: List instead of matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
kiliantyler committed Feb 29, 2024
1 parent 6878202 commit 1466944
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/')
Expand All @@ -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 }}

Expand Down

0 comments on commit 1466944

Please sign in to comment.