Skip to content

Commit

Permalink
Release pipeline improvements (#1194)
Browse files Browse the repository at this point in the history
* Updated release asset URL

Updated release asset URL to retrieve upload_url outside of release trigger.

* Updated comment
  • Loading branch information
LeftTwixWand authored Sep 18, 2023
1 parent b1c77b8 commit 35d8972
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/release-iiswebapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

env:
node-version: 10
extension-name: ms-vscs-rm.iiswebapp-${{ github.event.release.tag_name }}.vsix # Tag name is the extension version.
extension-name: ms-vscs-rm.${{ github.ref_name }}.vsix # ref_name is the tag, specified in the release.

jobs:

Expand Down Expand Up @@ -39,11 +39,17 @@ jobs:

- name: Package with Gulp
run: gulp package

- name: Get asset upload URL
id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Upload Extension as Release Asset
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: _package/IISWebAppDeploy/${{ env.extension-name }}
asset_name: ${{ env.extension-name }}
asset_content_type: application/octet-stream
Expand Down Expand Up @@ -82,3 +88,5 @@ jobs:
--no-prompt \
--auth-type pat \
--token ${{ secrets.AZURE_DEVOPS_MARKETPLACE_PAT }}

0 comments on commit 35d8972

Please sign in to comment.