From 75fafcda96eba149ee9d1fc82c17958ddc2d8a58 Mon Sep 17 00:00:00 2001 From: Bryton Hall Date: Tue, 10 Jan 2023 22:26:33 -0500 Subject: [PATCH] fix release artifact output name --- .github/workflows/main.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6f1c752..3f8f3ed 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: @@ -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 }} \ No newline at end of file + extensionFile: ${{ steps.package.outputs.path }}