-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1.61 KB
/
release_build_and_deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: 'Build and Deploy'
on:
workflow_dispatch:
# pull_request:
# types: [opened, reopened]
# push:
# branches:
# - main
# tags-ignore:
# - '[0-9]+.[0-9]+.[0-9]+.[0-9]+'
jobs:
Release-Build-and-Deploy:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: microsoft/setup-msbuild@v2
- uses: nuget/setup-nuget@v2
- name: 1. Versioning Release
id: step-version
uses: CodingWithCalvin/GHA-VSVsixVersioner@v1
with:
extension-manifest-file: 'src/CodingWithCalvin.ProjectRenamifier/source.extension.vsixmanifest'
extension-source-file: 'src/CodingWithCalvin.ProjectRenamifier/source.extension.cs'
- name: 2. Restoring Packages
run: nuget restore src/CodingWithCalvin.ProjectRenamifier.sln
- name: 3. Building Project
run: msbuild 'src/CodingWithCalvin.ProjectRenamifier/CodingWithCalvin.ProjectRenamifier.csproj' /p:configuration='Release' /p:platform='x64' /p:DeployExtension=False
- name: 4. Create Information File
uses: jsdaniell/create-json@v1.2.3
with:
name: 'src/CodingWithCalvin.ProjectRenamifier/bin/x64/Release/CodingWithCalvin.ProjectRenamifier.info'
json: '{"sha":"${{ github.sha }}", "version":"${{ steps.step-version.outputs.version }}"}'
- name: 5. Publishing Build Artifact
uses: actions/upload-artifact@v4
with:
path: |
src/CodingWithCalvin.ProjectRenamifier/bin/x64/Release/CodingWithCalvin.ProjectRenamifier.info
src/CodingWithCalvin.ProjectRenamifier/bin/x64/Release/CodingWithCalvin.ProjectRenamifier.vsix