Skip to content

Commit

Permalink
Publish script updates
Browse files Browse the repository at this point in the history
  • Loading branch information
simondotm committed Feb 10, 2024
1 parent 933326e commit 1a98c42
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
return context.ref.replace('v', '')
return context.ref.replace(/\/refs\/tags\//, '').replace('v', '')
- name: Echo2
run: echo ${{ steps.version.outputs.result }}
Expand All @@ -48,10 +48,11 @@ jobs:
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
PACKAGE_VERSION: ${{ format('beeb-vsc-{0}.vsix', steps.version.outputs.result) }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./beeb-vsc-${{ steps.version.outputs.result }}.vsix
asset_name: beeb-vsc-${{ steps.version.outputs.result }}.vsix
asset_path: ${{ join('./', env.PACKAGE_VERSION) }}
asset_name: ${{ env.PACKAGE_VERSION }}
asset_content_type: application/gzip


Expand Down

0 comments on commit 1a98c42

Please sign in to comment.