Skip to content

Commit 7a8fc6d

Browse files
authored
build: publish to marketplace with action (#26)
* init: publish to marketplace with action * 'push' for testing * Update publish.yml * Create vsixManifest.json * path to vsix manifest * publish on release * fix(manifest): semi-colon separated tags * add readme.md for publishing * proper trigger on publish action
1 parent 341b507 commit 7a8fc6d

File tree

4 files changed

+66
-1
lines changed

4 files changed

+66
-1
lines changed

.github/workflows/publish.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: CI
4+
5+
# Controls when the action will run. Triggers the workflow on push or pull request
6+
# events but only for the master branch
7+
on:
8+
release:
9+
types: [published]
10+
11+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
12+
jobs:
13+
# This workflow contains a single job called "build"
14+
publish:
15+
# The type of runner that the job will run on
16+
runs-on: windows-latest
17+
18+
# Steps represent a sequence of tasks that will be executed as part of the job
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v2
22+
23+
- name: Publish release to marketplace
24+
id: publish
25+
uses: mrluje/vs-marketplace-publisher@v2
26+
with:
27+
pat: ${{ secrets.vs_pat }}
28+
manifestPath: vs-commitizen/Resources/vsixManifest.json
29+
useLatestReleaseAsset: true

vs-commitizen/Resources/readme.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# vs-commitizen
2+
3+
[![Build status](https://ci.appveyor.com/api/projects/status/4yx0hjn5qmu8oem0/branch/master?svg=true)](https://ci.appveyor.com/project/MrLuje/vs-commitizen/branch/master)
4+
5+
This extension adds [commitizen](https://github.com/commitizen/) support to VisualStudio.
6+
7+
## Features
8+
9+
- Add link in _Source control_ menu and _Home_ view
10+
11+
![vs-commitizen_-_home__1.png](https://raw.githubusercontent.com/MrLuje/vs-commitizen/master/images/home.png)
12+
13+
- Add button near to the "Commit" button in _Changes_ view to easily use commitizen
14+
15+
![vs-commitizen_-_commit-cz.png](https://raw.githubusercontent.com/MrLuje/vs-commitizen/master/images/commit-cz.png)
16+
17+
- Nice page to format your comment using commitizen fashion.
18+
19+
![vs-commitizen_-_commitizen_view.png](https://raw.githubusercontent.com/MrLuje/vs-commitizen/master/images/commitizen-view.png)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "http://json.schemastore.org/vsix-publish",
3+
"categories": [
4+
"other",
5+
"source control",
6+
"team development"
7+
],
8+
"identity": {
9+
"internalName": "vs-commitizen"
10+
},
11+
"overview": "readme.md",
12+
"priceCategory": "free",
13+
"publisher": "mrluje",
14+
"private": false,
15+
"qna": true,
16+
"repo": "https://github.com/MrLuje/vs-commitizen"
17+
}

vs-commitizen/source.extension.vsixmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<Description xml:space="preserve">This extension adds commitizen support.</Description>
77
<MoreInfo>https://github.com/MrLuje/vs-commitizen</MoreInfo>
88
<Icon>Resources\Git_icon.svg.png</Icon>
9-
<Tags>git commitizen changelog conventional-changelog</Tags>
9+
<Tags>git;commitizen;changelog;conventional-changelog</Tags>
1010
</Metadata>
1111
<Installation>
1212
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[14.0,17.0]" />

0 commit comments

Comments
 (0)