Skip to content

Commit

Permalink
Update build-and-publish.yml to determine vsix file name using find c…
Browse files Browse the repository at this point in the history
…ommand
  • Loading branch information
FH-Inway committed Jan 13, 2024
1 parent ad8868a commit ba95d22
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ jobs:

- name: Determine vsix file name
id: vsix
run: echo "::set-output name=vsix::$(glob-exec \"*.vsix\" -- \"echo {files}\" )"
run: |
vsix_file=$(find . -name "*.vsix" -type f)
echo "vsix=$vsix_file" >> $GITHUB_OUTPUT
- name: Upload
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -64,7 +66,9 @@ jobs:

- name: Determine vsix file name
id: vsix
run: echo "::set-output name=vsix::$(glob-exec \"*.vsix\" -- \"echo {files}\" )"
run: |
vsix_file=$(find . -name "*.vsix" -type f)
echo "vsix=$vsix_file" >> $GITHUB_OUTPUT
- name: Publish to Azure DevOps Marketplace
run: tfx extension publish --auth-type pat --token ${{ secrets.AZURE_DEVOPS_TOKEN }} --extension-id authenticated-lcs-scripts --vsix ${{ format('{0}/{1}', steps.download.outputs.download-path, steps.vsix.outputs.vsix) }}

0 comments on commit ba95d22

Please sign in to comment.