Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ jobs:
with:
dotnet-version: 8.0.x

- name: Restore dependencies
run: dotnet restore
- name: Create artifacts directory
run: New-Item -ItemType Directory -Force -Path artifacts/packages

- name: Build SDK
run: dotnet build src/CodingWithCalvin.VsixSdk/CodingWithCalvin.VsixSdk.csproj -c Release --no-restore
run: dotnet build src/CodingWithCalvin.VsixSdk/CodingWithCalvin.VsixSdk.csproj -c Release

- name: Build Templates
run: dotnet pack src/CodingWithCalvin.VsixSdk.Templates/CodingWithCalvin.VsixSdk.Templates.csproj -c Release --no-restore
run: dotnet pack src/CodingWithCalvin.VsixSdk.Templates/CodingWithCalvin.VsixSdk.Templates.csproj -c Release

- name: Build Sample Extension
run: dotnet build samples/SampleExtension/SampleExtension.csproj -c Release
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/contributors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Update Contributors

on:
schedule:
- cron: '0 0 * * *' # Run daily at midnight UTC
workflow_dispatch: # Allow manual trigger

jobs:
contributors:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.CONTRIBUTORS_TOKEN }}

- name: Update contributors
env:
GH_TOKEN: ${{ secrets.CONTRIBUTORS_TOKEN }}
run: |
# Fetch contributors from GitHub API (exclude bots) - markdown format
contributors=$(gh api repos/CodingWithCalvin/VsixSdk/contributors --paginate --jq '.[] | select(.type != "Bot") | select(.login | test("\\[bot\\]$") | not) | "[![\(.login)](\(.avatar_url)&s=64)](\(.html_url))"' | tr '\n' ' ')

# Build the contributors section
contrib_section="<!-- readme: contributors -start -->
$contributors
<!-- readme: contributors -end -->"

# Update README between the markers
awk -v contrib="$contrib_section" '
/<!-- readme: contributors -start -->/{found=1; print contrib; next}
/<!-- readme: contributors -end -->/{found=0; next}
!found{print}
' README.md > README.tmp && mv README.tmp README.md

- name: Commit and push
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add README.md
git diff --staged --quiet || (git commit -m "docs: update contributors [skip ci]" && git push)
42 changes: 42 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
release:
needs: changelog
runs-on: windows-latest
outputs:
version: ${{ steps.version.outputs.VERSION }}

permissions:
contents: write
Expand Down Expand Up @@ -64,3 +66,43 @@ jobs:
files: |
artifacts/packages/CodingWithCalvin.VsixSdk.${{ steps.version.outputs.VERSION }}.nupkg
artifacts/packages/CodingWithCalvin.VsixSdk.Templates.${{ steps.version.outputs.VERSION }}.nupkg

notify-bluesky:
needs: release
uses: CodingWithCalvin/.github/.github/workflows/bluesky-post.yml@main
with:
post_text: |
🚀 CodingWithCalvin.VsixSdk v${{ needs.release.outputs.version }} has been released!

Build modern SDK-style Visual Studio extensions with ease.

[📋 Release Notes](https://github.com/${{ github.repository }}/releases/tag/v${{ needs.release.outputs.version }})
[📦 NuGet](https://www.nuget.org/packages/CodingWithCalvin.VsixSdk)

#dotnet #csharp #visualstudio #nuget
embed_url: https://www.nuget.org/packages/CodingWithCalvin.VsixSdk
embed_title: CodingWithCalvin.VsixSdk
embed_description: An MSBuild SDK for modern SDK-style Visual Studio extension development
secrets:
BLUESKY_USERNAME: ${{ secrets.BLUESKY_USERNAME }}
BLUESKY_APP_PASSWORD: ${{ secrets.BLUESKY_APP_PASSWORD }}

notify-linkedin:
needs: release
uses: CodingWithCalvin/.github/.github/workflows/linkedin-post.yml@main
with:
post_text: |
🚀 CodingWithCalvin.VsixSdk v${{ needs.release.outputs.version }} has been released!

Build modern SDK-style Visual Studio extensions with ease.

📋 Release Notes: https://github.com/${{ github.repository }}/releases/tag/v${{ needs.release.outputs.version }}
📦 NuGet: https://www.nuget.org/packages/CodingWithCalvin.VsixSdk

#dotnet #csharp #visualstudio #nuget
article_url: https://www.nuget.org/packages/CodingWithCalvin.VsixSdk
article_title: CodingWithCalvin.VsixSdk
article_description: An MSBuild SDK for modern SDK-style Visual Studio extension development
secrets:
LINKEDIN_ACCESS_TOKEN: ${{ secrets.LINKEDIN_ACCESS_TOKEN }}
LINKEDIN_CLIENT_ID: ${{ secrets.LINKEDIN_CLIENT_ID }}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,8 @@ Desktop.ini
CLAUDE.local.md

.claude/

# Generated files from SDK
Generated/
VsixInfo.g.cs
*Vsct.g.cs
Loading