Skip to content

docs(readme): remove Extensibility Essentials requirement #102

docs(readme): remove Extensibility Essentials requirement

docs(readme): remove Extensibility Essentials requirement #102

name: 'Build and Deploy'
on:
workflow_dispatch:
pull_request:
types: [opened, reopened]
push:
branches:
- main
jobs:
Release-Build-and-Deploy:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: 1. Generate Version
id: version
run: |
$year = (Get-Date).Year
$month = (Get-Date).Month
$day = (Get-Date).Day
$version = "$year.$month.$day.${{ github.run_number }}"
echo "version=$version" >> $env:GITHUB_OUTPUT
Write-Host "Generated version: $version"
shell: pwsh
- name: 2. Inject Honeycomb API Key
run: |
$file = 'src/CodingWithCalvin.OpenInNotepadPlusPlus/HoneycombConfig.cs'
$content = Get-Content $file -Raw
$content = $content -replace 'PLACEHOLDER', '${{ secrets.HONEYCOMB_API_KEY }}'
Set-Content $file $content
shell: pwsh
- name: 3. Building Project
run: dotnet build src/CodingWithCalvin.OpenInNotepadPlusPlus/CodingWithCalvin.OpenInNotepadPlusPlus.csproj -c Release -p:Version=${{ steps.version.outputs.version }}
- name: 4. Create Information File
uses: jsdaniell/create-json@v1.2.3
with:
name: 'src/CodingWithCalvin.OpenInNotepadPlusPlus/bin/Release/net48/CodingWithCalvin.OpenInNotepadPlusPlus.info'
json: '{"sha":"${{ github.sha }}", "version":"${{ steps.version.outputs.version }}"}'
- name: 5. Publishing Build Artifact
uses: actions/upload-artifact@v4
with:
path: |
src/CodingWithCalvin.OpenInNotepadPlusPlus/bin/Release/net48/CodingWithCalvin.OpenInNotepadPlusPlus.info
src/CodingWithCalvin.OpenInNotepadPlusPlus/bin/Release/net48/CodingWithCalvin.OpenInNotepadPlusPlus.vsix