-
Notifications
You must be signed in to change notification settings - Fork 421
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release pipeline improvements (#1194)
* Updated release asset URL Updated release asset URL to retrieve upload_url outside of release trigger. * Updated comment
- Loading branch information
1 parent
b1c77b8
commit 35d8972
Showing
1 changed file
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
||
|
@@ -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 | ||
|
@@ -82,3 +88,5 @@ jobs: | |
--no-prompt \ | ||
--auth-type pat \ | ||
--token ${{ secrets.AZURE_DEVOPS_MARKETPLACE_PAT }} | ||