Skip to content

Commit 2e9ba32

Browse files
committed
chore: misc file updates
1 parent f858e23 commit 2e9ba32

File tree

4 files changed

+55
-16
lines changed

4 files changed

+55
-16
lines changed

.github/workflows/publish.yml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,40 @@ jobs:
5252
publish-manifest-path: ./resources/extension.manifest.json
5353
vsix-path: ./artifact/CodingWithCalvin.OpenInNotepadPlusPlus.vsix
5454

55-
notify:
55+
notify-bluesky:
56+
name: Post to BlueSky
5657
needs: publish
5758
uses: CodingWithCalvin/.github/.github/workflows/bluesky-post.yml@main
5859
with:
5960
post_text: |
6061
🚀 Open in Notepad++ v${{ needs.publish.outputs.version }} for #VisualStudio has been released!
6162
62-
[Check out the release notes here!](https://github.com/${{ github.repository }}/releases/tag/${{ needs.publish.outputs.version }})
63+
📝 [Release Notes](https://github.com/${{ github.repository }}/releases/tag/${{ needs.publish.outputs.version }})
64+
🛒 [Marketplace](https://marketplace.visualstudio.com/items?itemName=CodingWithCalvin.VS-OpenInNotepadPlusPlus)
6365
64-
Marketplace: https://marketplace.visualstudio.com/items?itemName=CodingWithCalvin.VS-OpenInNotepadPlusPlus
66+
#dotnet #visualstudio #vsix #notepadplusplus
67+
embed_url: https://marketplace.visualstudio.com/items?itemName=CodingWithCalvin.VS-OpenInNotepadPlusPlus
68+
embed_title: "Open in Notepad++ v${{ needs.publish.outputs.version }}"
69+
embed_description: "Visual Studio extension to open files in Notepad++"
6570
secrets:
6671
BLUESKY_USERNAME: ${{ secrets.BLUESKY_USERNAME }}
6772
BLUESKY_APP_PASSWORD: ${{ secrets.BLUESKY_APP_PASSWORD }}
73+
74+
notify-linkedin:
75+
name: Post to LinkedIn
76+
needs: publish
77+
uses: CodingWithCalvin/.github/.github/workflows/linkedin-post.yml@main
78+
with:
79+
post_text: |
80+
🚀 Open in Notepad++ v${{ needs.publish.outputs.version }} for Visual Studio has been released!
81+
82+
📝 Release Notes: https://github.com/${{ github.repository }}/releases/tag/${{ needs.publish.outputs.version }}
83+
🛒 Marketplace: https://marketplace.visualstudio.com/items?itemName=CodingWithCalvin.VS-OpenInNotepadPlusPlus
84+
85+
#dotnet #visualstudio #vsix #notepadplusplus
86+
article_url: https://marketplace.visualstudio.com/items?itemName=CodingWithCalvin.VS-OpenInNotepadPlusPlus
87+
article_title: "Open in Notepad++ v${{ needs.publish.outputs.version }}"
88+
article_description: "Visual Studio extension to open files in Notepad++"
89+
secrets:
90+
LINKEDIN_ACCESS_TOKEN: ${{ secrets.LINKEDIN_ACCESS_TOKEN }}
91+
LINKEDIN_CLIENT_ID: ${{ secrets.LINKEDIN_CLIENT_ID }}

.github/workflows/release_build_and_deploy.yml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ on:
77
push:
88
branches:
99
- main
10-
tags-ignore:
11-
- '[0-9]+.[0-9]+.[0-9]+.[0-9]+'
1210

1311
jobs:
1412
Release-Build-and-Deploy:
@@ -26,21 +24,29 @@ jobs:
2624
extension-manifest-file: 'src/CodingWithCalvin.OpenInNotepadPlusPlus/source.extension.vsixmanifest'
2725
extension-source-file: 'src/CodingWithCalvin.OpenInNotepadPlusPlus/source.extension.cs'
2826

29-
- name: 2. Restoring Packages
30-
run: nuget restore ./src/CodingWithCalvin.OpenInNotepadPlusPlus.sln
27+
- name: 2. Inject Honeycomb API Key
28+
run: |
29+
$file = 'src/CodingWithCalvin.OpenInNotepadPlusPlus/HoneycombConfig.cs'
30+
$content = Get-Content $file -Raw
31+
$content = $content -replace 'PLACEHOLDER', '${{ secrets.HONEYCOMB_API_KEY }}'
32+
Set-Content $file $content
33+
shell: pwsh
3134

32-
- name: 3. Building Project
33-
run: msbuild 'src/CodingWithCalvin.OpenInNotepadPlusPlus/CodingWithCalvin.OpenInNotepadPlusPlus.csproj' /p:configuration='Release' /p:platform='x64' /p:DeployExtension=False
35+
- name: 3. Restoring Packages
36+
run: nuget restore ./src/CodingWithCalvin.OpenInNotepadPlusPlus.slnx
3437

35-
- name: 4. Create Information File
38+
- name: 4. Building Project
39+
run: msbuild 'src/CodingWithCalvin.OpenInNotepadPlusPlus/CodingWithCalvin.OpenInNotepadPlusPlus.csproj' /p:configuration='Release' /p:platform='Any CPU' /p:DeployExtension=False
40+
41+
- name: 5. Create Information File
3642
uses: jsdaniell/create-json@v1.2.3
3743
with:
38-
name: 'src/CodingWithCalvin.OpenInNotepadPlusPlus/bin/x64/Release/CodingWithCalvin.OpenInNotepadPlusPlus.info'
44+
name: 'src/CodingWithCalvin.OpenInNotepadPlusPlus/bin/Release/CodingWithCalvin.OpenInNotepadPlusPlus.info'
3945
json: '{"sha":"${{ github.sha }}", "version":"${{ steps.step-version.outputs.version }}"}'
40-
41-
- name: 5. Publishing Build Artifact
46+
47+
- name: 6. Publishing Build Artifact
4248
uses: actions/upload-artifact@v4
4349
with:
4450
path: |
45-
src/CodingWithCalvin.OpenInNotepadPlusPlus/bin/x64/Release/CodingWithCalvin.OpenInNotepadPlusPlus.info
46-
src/CodingWithCalvin.OpenInNotepadPlusPlus/bin/x64/Release/CodingWithCalvin.OpenInNotepadPlusPlus.vsix
51+
src/CodingWithCalvin.OpenInNotepadPlusPlus/bin/Release/CodingWithCalvin.OpenInNotepadPlusPlus.info
52+
src/CodingWithCalvin.OpenInNotepadPlusPlus/bin/Release/CodingWithCalvin.OpenInNotepadPlusPlus.vsix

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ This is a Visual Studio extension that adds a right-click context menu command t
8282

8383
Build the extension (requires Visual Studio with VS SDK or .NET Framework 4.8 targeting pack):
8484
```
85-
msbuild src\CodingWithCalvin.OpenInNotepadPlusPlus.sln
85+
msbuild src\CodingWithCalvin.OpenInNotepadPlusPlus.slnx
8686
```
8787

8888
Debug by pressing F5 in Visual Studio - this launches the VS Experimental Instance (`/rootsuffix Exp`).
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Solution>
2+
<Folder Name="/Solution Items/">
3+
<File Path="../resources/extension.manifest.json" />
4+
<File Path="../.github/workflows/publish.yml" />
5+
<File Path="../README.md" />
6+
<File Path="../.github/workflows/release_build_and_deploy.yml" />
7+
</Folder>
8+
<Project Path="CodingWithCalvin.OpenInNotepadPlusPlus/CodingWithCalvin.OpenInNotepadPlusPlus.csproj" Id="add4175c-aa5c-49e4-afaf-6b9d3e832e8d" />
9+
</Solution>

0 commit comments

Comments
 (0)