9
9
steps :
10
10
- name : Checkout
11
11
uses : actions/checkout@v4
12
-
12
+
13
13
- name : 1. Download artifact
14
14
id : download-artifact
15
15
uses : dawidd6/action-download-artifact@v2
16
16
with :
17
17
github_token : ${{ secrets.GH_SECRET }}
18
18
workflow : release_build_and_deploy.yml
19
19
workflow_conclusion : success
20
-
20
+
21
21
- name : 2. Parse Artifact Manifest
22
22
id : artifact_manifest
23
23
uses : ActionsTools/read-json-action@main
24
24
with :
25
25
file_path : ./artifact/CodingWithCalvin.WebcamStudio.info
26
-
26
+
27
27
- name : 3. Create Tag & Release
28
28
29
29
with :
@@ -38,16 +38,19 @@ jobs:
38
38
if : success()
39
39
shell : pwsh
40
40
run : |
41
- $repoUrl = ${{ github.server_url }}/${{ github.repository }}
42
- $issuesUrl = $repo + " /issues"
41
+ $repoUrl = " ${{ github.server_url }}/${{ github.repository }}"
42
+ $issuesUrl = "${$repoUrl} /issues"
43
43
$readmeUrl = "https://raw.githubusercontent.com/${{ github.repository }}/main/README.md"
44
-
45
- https://www.vsixgallery.com/api/upload?repo=" + $repoUrl + "&issuetracker=" + $issuesUrl + "&readmeUrl=" + $readmeUrl
46
-
47
- - name : 4. Publish Release to Marketplace
48
- if : success()
49
- uses : CodingWithCalvin/GHA-VSMarketplacePublisher@v1
50
- with :
51
- marketplace-pat : ${{ secrets.VS_PAT }}
52
- publish-manifest-path : ./resources/extension.manifest.json
53
- vsix-path : ./artifact/CodingWithCalvin.WebcamStudio.vsix
44
+
45
+ $uploadUrl = "https://www.vsixgallery.com/api/upload?repo=${$repoUrl}&issuetracker=${$issuesUrl}&readmeUrl=${$readmeUrl}"
46
+
47
+ $webclient = New-Object System.Net.WebClient
48
+ $webclient.UploadFile($uploadUrl, "./artifact/CodingWithCalvin.WebcamStudio.vsix") | Out-Null
49
+
50
+ # - name: 4. Publish Release to Marketplace
51
+ # if: success()
52
+ # uses: CodingWithCalvin/GHA-VSMarketplacePublisher@v1
53
+ # with:
54
+ # marketplace-pat: ${{ secrets.VS_PAT }}
55
+ # publish-manifest-path: ./resources/extension.manifest.json
56
+ # vsix-path: ./artifact/CodingWithCalvin.WebcamStudio.vsix
0 commit comments