Skip to content

Commit

Permalink
fix release artifact output name
Browse files Browse the repository at this point in the history
  • Loading branch information
hall committed Jan 11, 2023
1 parent 26780ef commit 75fafcd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,18 @@ jobs:
id: package
run: |
nix build
echo ::set-output name=path::result/*.vsix
echo path=$(echo result/*.vsix) >> $GITHUB_OUTPUT
- name: get latest tag
id: latest
run: echo ::set-output name=version::$(git describe --abbrev=0 --tags --match 'v[0-9]*\.[0-9]*\.[0-9]*' | cut -c2-)
run: echo version=$(git describe --abbrev=0 --tags --match 'v[0-9]*\.[0-9]*\.[0-9]*' | cut -c2-) >> $GITHUB_OUTPUT

- name: parse changelog
id: changelog
uses: coditory/changelog-parser@v1

- name: create release
id: release
uses: softprops/action-gh-release@v1
if: github.ref == 'refs/heads/main' && steps.changelog.outputs.version != steps.latest.outputs.version
with:
Expand All @@ -40,13 +41,15 @@ jobs:

- name: publish to Open VSX
uses: HaaLeo/publish-vscode-extension@v1
if: steps.release.outcome == 'success'
with:
pat: ${{ secrets.OPENVSX_ACCESS_TOKEN }}
extensionFile: ${{ steps.package.outputs.path }}

- name: publish to VS Marketplace
uses: HaaLeo/publish-vscode-extension@v1
if: steps.release.outcome == 'success'
with:
pat: ${{ secrets.AZURE_ACCESS_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
extensionFile: ${{ steps.package.outputs.path }}
extensionFile: ${{ steps.package.outputs.path }}

0 comments on commit 75fafcd

Please sign in to comment.