Skip to content

Commit

Permalink
Fix publish CI
Browse files Browse the repository at this point in the history
  • Loading branch information
simondotm committed Feb 10, 2024
1 parent 56b0ffd commit 933326e
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,11 @@ jobs:
run: npm run package

- name: GitHub Tag Name
# ${GITHUB_REF_NAME#v}
run: |
echo "Tag name from GITHUB_REF_NAME: $GITHUB_REF_NAME"
echo "Tag name from github.ref_name: ${{ github.ref_name }}"
- name: Extract tag name
id: tag
uses: actions/github-script@0.2.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
return context.payload.ref.replace(/\/refs\/tags\//, '');
- name: Echo
run: echo ${{ steps.tag.outputs.result }}


- name: Extract version from tag
id: version
uses: actions/github-script@0.2.0
Expand All @@ -55,12 +44,12 @@ jobs:
- name: Echo2
run: echo ${{ steps.version.outputs.result }}

- name: upload build
- name: Upload build artefact
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
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_content_type: application/gzip
Expand Down

0 comments on commit 933326e

Please sign in to comment.