-
-
Notifications
You must be signed in to change notification settings - Fork 10
36 lines (26 loc) · 1 KB
/
build_plugin.yml
File metadata and controls
36 lines (26 loc) · 1 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
name: Build Git Extensions plugin
on: [push] #At every git push
# on:
# push:
# tags: #When git push a tag with format `vX.Y.Z`
# - 'v\d.\d.\d'
jobs:
build:
runs-on: [windows-latest]
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.x'
- name: Restore
run: dotnet restore --verbosity q --nologo
- name: Build & package with `dotnet`
run: |
dotnet build -c Release --verbosity q --nologo
dotnet publish --configuration Release --verbosity q --nologo
# - name: Push to `Nuget.org` nuget feed
# run: |
# cd "src/GitExtensions.PluginTemplate/bin/Release"
# # Set your nuget token in a `NUGET_PUSH_TOKEN` GitHub secrets. See https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets
# dotnet nuget push *.nupkg -k ${{ secrets.NUGET_PUSH_TOKEN }} -s https://api.nuget.org/v3/index.json -n true