-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (64 loc) · 2.04 KB
/
Copy pathmain.yml
File metadata and controls
81 lines (64 loc) · 2.04 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Build
on:
workflow_dispatch:
push:
tags:
- "v*"
jobs:
publish:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Verify tag is on main
shell: bash
run: |
git fetch origin main
if ! git merge-base --is-ancestor $GITHUB_SHA origin/main; then
echo "Tag is not on main."
exit 1
fi
- name: Get version
id: version
shell: bash
run: |
TAG=${GITHUB_REF#refs/tags/}
echo "tag=$TAG" >> "$GITHUB_OUTPUT"
- name: Report version
shell: bash
run: echo ${{ steps.version.outputs.tag }}
- name: Update version
shell: bash
working-directory: Source/WineDebug
run: cat source.extension.vsixmanifest | sed 's/Version="1.0.1"/Version="${{ steps.version.outputs.tag }}"/' | sed 's/Version="v/Version="/' > source.extension.vsixmanifest
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.302'
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Restore
run: dotnet restore Source/wdbg/wdbg.csproj
- name: Publish
working-directory: Source/wdbg
run: dotnet publish
- name: Copy wdbg to resources
working-directory: Source/wdbg
run: Copy-Item `
bin/Release/net10.0/win-x64/publish/wdbg.exe `
../WineDebug/Resources `
-Force
- name: Restore WineDebug extension
working-directory: Source/WineDebug
run: msbuild WineDebug.sln `
-t:Restore
- name: Build WineDebug extension
working-directory: Source/WineDebug
run: msbuild WineDebug.sln `
/p:Configuration=Release
- name: Create Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.version.outputs.tag }}
files: |
Source/WineDebug/bin/Release/WineDebug.vsix