Skip to content

Commit 341a442

Browse files
committed
[skip ci]
1 parent c7aec31 commit 341a442

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

.github/workflows/publish.yml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@ jobs:
99
steps:
1010
- name: Checkout
1111
uses: actions/checkout@v4
12-
12+
1313
- name: 1. Download artifact
1414
id: download-artifact
1515
uses: dawidd6/action-download-artifact@v2
1616
with:
1717
github_token: ${{ secrets.GH_SECRET }}
1818
workflow: release_build_and_deploy.yml
1919
workflow_conclusion: success
20-
20+
2121
- name: 2. Parse Artifact Manifest
2222
id: artifact_manifest
2323
uses: ActionsTools/read-json-action@main
2424
with:
2525
file_path: ./artifact/CodingWithCalvin.WebcamStudio.info
26-
26+
2727
- name: 3. Create Tag & Release
2828
uses: ncipollo/[email protected]
2929
with:
@@ -38,16 +38,19 @@ jobs:
3838
if: success()
3939
shell: pwsh
4040
run: |
41-
$repoUrl = ${{ github.server_url }}/${{ github.repository }}
42-
$issuesUrl = $repo + "/issues"
41+
$repoUrl = "${{ github.server_url }}/${{ github.repository }}"
42+
$issuesUrl = "${$repoUrl}/issues"
4343
$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

Comments
 (0)