-
Notifications
You must be signed in to change notification settings - Fork 7
43 lines (37 loc) · 1.21 KB
/
publish-marketplace.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Publish to the Visual Studio Marketplace
on:
push:
tags:
- v*
jobs:
publish:
name: Publish to the Visual Studio Marketplace
runs-on: windows-latest
steps:
- name: Checkout
uses: Lombiq/GitHub-Actions/.github/actions/checkout@dev
- name: Set Version
id: set-version
shell: pwsh
run: |
$version = $Env:GITHUB_REF_NAME.Trim().TrimStart("v")
Write-Output "Target Version: $version"
"version=$version" >> $Env:GITHUB_OUTPUT
- name: Build VSIX
uses: ./.github/actions/build-vsix
with:
version-number: ${{ steps.set-version.outputs.version }}
- name: Publish to Marketplace
# v1.0
uses: cezarypiatek/VsixPublisherAction@9c6b58b5955df9901a6e9834be1d0a94cd54aeba
with:
extension-file: artifacts\Lombiq.Vsix.Orchard.vsix
publish-manifest-file: Marketplace\publishManifest.json
personal-access-code: ${{ secrets.VS_PUBLISHER_ACCESS_TOKEN }}
- name: Create Release
# v1.11.2
uses: ncipollo/release-action@18eadf9c9b0f226f47f164f5373c6a44f0aae169
with:
allowUpdates: true
generateReleaseNotes: true
artifacts: artifacts/Lombiq.Vsix.Orchard.vsix