Skip to content

Update release_build_and_deploy.yml #57

Update release_build_and_deploy.yml

Update release_build_and_deploy.yml #57

name: 'Build and Deploy'
on:
workflow_dispatch:
pull_request:
types: [opened, reopened]
push:
branches:
- main
tags-ignore:
- 'v[0-9]+.[0-9]+.[0-9]+.[0-9]+'
jobs:
Release-Build-and-Deploy:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: microsoft/[email protected]
- name: 1. Versioning Release
id: step-version
uses: CodingWithCalvin/GHA-VSVsixVersioner@v1
with:
extension-manifest-file: './src/CodingWithCalvin.OpenInNotepadPlusPlus.Vsix.x64/source.extension.vsixmanifest'
extension-source-file: './src/CodingWithCalvin.OpenInNotepadPlusPlus.Vsix.x64/VsixConstants.cs'
- name: 2. Bootstrapping NuGet Installer
uses: nuget/[email protected]
- name: 3. Restoring Packages
run: nuget restore ./src/CodingWithCalvin.OpenInNotepadPlusPlus.sln
- name: 4. Building Project
run: msbuild './src/CodingWithCalvin.OpenInNotepadPlusPlus.Vsix.x64/CodingWithCalvin.OpenInNotepadPlusPlus.Vsix.x64.csproj' /p:configuration='Release' /p:platform='x64'
- name: 5. Create Information File
uses: jsdaniell/[email protected]
with:
name: './src/CodingWithCalvin.OpenInNotepadPlusPlus.Vsix.x64/bin/x64/Release/CodingWithCalvin.OpenInNotepadPlusPlus.Vsix.x64.info'
json: '{"sha":"${{ github.sha }}", "version":"${{ steps.step-version.outputs.version }}"}'
- name: 6. Publishing Build Artifact
uses: actions/upload-artifact@v4
with:
path: |
'./src/CodingWithCalvin.OpenInNotepadPlusPlus.Vsix.x64/bin/x64/Release/CodingWithCalvin.OpenInNotepadPlusPlus.Vsix.x64.info'
'./src/CodingWithCalvin.OpenInNotepadPlusPlus.Vsix.x64/bin/x64/Release/CodingWithCalvin.OpenInNotepadPlusPlus.Vsix.x64.vsix'