Skip to content

Commit af1aacd

Browse files
committed
Standardization 2.0
1 parent d09f6f5 commit af1aacd

30 files changed

+567
-672
lines changed

.github/workflows/publish.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Publish to VS Marketplace
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
publish:
8+
runs-on: windows-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
13+
- name: 1. Download artifact
14+
id: download-artifact
15+
uses: dawidd6/action-download-artifact@v2
16+
with:
17+
github_token: ${{ secrets.GH_SECRET }}
18+
workflow: release_build_and_deploy.yml
19+
workflow_conclusion: success
20+
21+
- name: 2. Parse Artifact Manifest
22+
id: artifact_manifest
23+
uses: ActionsTools/read-json-action@main
24+
with:
25+
file_path: ./artifact/CodingWithCalvin.CouchbaseStudio.info
26+
27+
- name: 3. Create Tag & Release
28+
uses: ncipollo/[email protected]
29+
with:
30+
artifacts: ./artifact/CodingWithCalvin.CouchbaseStudio.vsix
31+
generateReleaseNotes: true
32+
makeLatest: true
33+
token: ${{ secrets.GH_SECRET }}
34+
commit: ${{ steps.artifact_manifest.outputs.sha }}
35+
tag: ${{ steps.artifact_manifest.outputs.version }}
36+
37+
- name: 4. Publish Release to Marketplace
38+
if: success()
39+
uses: CodingWithCalvin/GHA-VSMarketplacePublisher@v1
40+
with:
41+
marketplace-pat: ${{ secrets.VS_PAT }}
42+
publish-manifest-path: ./resources/extension.manifest.json
43+
vsix-path: ./artifact/CodingWithCalvin.CouchbaseStudio.vsix
44+
45+
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: 'Build and Deploy'
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
types: [opened, reopened]
7+
push:
8+
branches:
9+
- main
10+
tags-ignore:
11+
- '[0-9]+.[0-9]+.[0-9]+.[0-9]+'
12+
13+
jobs:
14+
Release-Build-and-Deploy:
15+
runs-on: windows-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: microsoft/setup-msbuild@v2
20+
- uses: nuget/setup-nuget@v2
21+
22+
- name: 1. Versioning Release
23+
id: step-version
24+
uses: CodingWithCalvin/GHA-VSVsixVersioner@v1
25+
with:
26+
extension-manifest-file: 'src/CodingWithCalvin.CouchbaseStudio/source.extension.vsixmanifest'
27+
extension-source-file: 'src/CodingWithCalvin.CouchbaseStudio/source.extension.cs'
28+
29+
- name: 2. Restoring Packages
30+
run: nuget restore src/CodingWithCalvin.CouchbaseStudio.sln
31+
32+
- name: 3. Building Project
33+
run: msbuild 'src/CodingWithCalvin.CouchbaseStudio/CodingWithCalvin.CouchbaseStudio.csproj' /p:configuration='Release' /p:platform='x64' /p:DeployExtension=False
34+
35+
- name: 4. Create Information File
36+
uses: jsdaniell/[email protected]
37+
with:
38+
name: 'src/CodingWithCalvin.CouchbaseStudio/bin/x64/Release/CodingWithCalvin.CouchbaseStudio.info'
39+
json: '{"sha":"${{ github.sha }}", "version":"${{ steps.step-version.outputs.version }}"}'
40+
41+
- name: 5. Publishing Build Artifact
42+
uses: actions/upload-artifact@v4
43+
with:
44+
path: |
45+
src/CodingWithCalvin.CouchbaseStudio/bin/x64/Release/CodingWithCalvin.CouchbaseStudio.info
46+
src/CodingWithCalvin.CouchbaseStudio/bin/x64/Release/CodingWithCalvin.CouchbaseStudio.vsix

README.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,26 @@
1-
# Couchbase Studio
2-
Visual Studio extension to communicate with Couchbase server
1+
# Couchbase Studio (BETA / PREVIEW)
2+
3+
A Visual Stuio extension that adds a host of Couchbase & Capella data management and query capabilities right into your IDE!
4+
5+
## License
6+
7+
[![License - MIT](https://img.shields.io/github/license/CodingWithCalvin/VS-CouchbaseStudio?style=for-the-badge)](https://img.shields.io/github/license/codingwithcalvin/VS-CouchbaseStudio?style=for-the-badge)
8+
9+
## Build Status
10+
11+
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/CodingWithCalvin/VS-CouchbaseStudio/release_build_and_deploy.yml?style=for-the-badge)
12+
13+
## Marketplace Status
14+
15+
[![Marketplace Installations](https://img.shields.io/visual-studio-marketplace/i/codingwithcalvin.VS-CouchbaseStudio?style=for-the-badge)](https://img.shields.io/visual-studio-marketplace/i/codingwithcalvin.VS-CouchbaseStudio?style=for-the-badge) [![Marketplace Downloads](https://img.shields.io/visual-studio-marketplace/d/codingwithcalvin.VS-CouchbaseStudio?style=for-the-badge)](https://img.shields.io/visual-studio-marketplace/d/codingwithcalvin.VS-CouchbaseStudio?style=for-the-badge)
16+
[![Marketplace Version](https://img.shields.io/visual-studio-marketplace/v/codingwithcalvin.VS-CouchbaseStudio?style=for-the-badge)](https://img.shields.io/visual-studio-marketplace/v/codingwithcalvin.VS-CouchbaseStudio?style=for-the-badge) [![Marketplace Rating](https://img.shields.io/visual-studio-marketplace/r/codingwithcalvin.VS-CouchbaseStudio?style=for-the-badge)](https://img.shields.io/visual-studio-marketplace/r/codingwithcalvin.VS-CouchbaseStudio?style=for-the-badge)
17+
18+
## Prerequisite
19+
20+
In order to use this extension, you must have access to a Couchbase server or hosted Capella database instance.
21+
22+
## Contributions
23+
24+
Contributions are welcome! Issues, PRs, etc. This extension is very much in "preview mode", and looking for active feedback and contributors!
25+
26+
For cloning and building this project yourself, make sure to install the [Extensibility Essentials 2022 extension](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.ExtensibilityEssentials2022) for Visual Studio which enables some features used by this project.

resources/extension.manifest.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "http://json.schemastore.org/vsix-publish",
3+
"categories": [ "coding", "other", "data"],
4+
"identity": {
5+
"internalName": "VS-CouchbaseStudio",
6+
},
7+
"overview": "../README.md",
8+
"publisher": "CodingWithCalvin"
9+
}

resources/icon.png

2.03 KB
Loading

resources/logo.png

5.28 KB
Loading

0 commit comments

Comments
 (0)