File tree Expand file tree Collapse file tree 2 files changed +67
-0
lines changed
Expand file tree Collapse file tree 2 files changed +67
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Compile
2+
3+ on :
4+ push :
5+ branches :
6+ - ' *'
7+ pull_request :
8+
9+ jobs :
10+ compile :
11+ name : Compile
12+ runs-on : windows-2022
13+ steps :
14+ - name : Checkout
15+ uses : actions/checkout@v4
16+
17+ - name : Cache packages
18+ uses : actions/cache@v4
19+ with :
20+ path : |
21+ .nuke/temp
22+ ~/.nuget/packages
23+ key : ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }}
24+
25+ - name : Compile solution
26+ run : ./.nuke/build.cmd
Original file line number Diff line number Diff line change 1+ name : Publish Release
2+
3+ on :
4+ push :
5+ tags :
6+ - ' *'
7+ workflow_dispatch :
8+ inputs :
9+ version :
10+ description : " Release version"
11+ required : true
12+ type : string
13+
14+ jobs :
15+ release :
16+ name : Publish release
17+ runs-on : windows-2022
18+ steps :
19+ - name : Checkout
20+ uses : actions/checkout@v4
21+ with :
22+ fetch-depth : 0
23+
24+ - name : Create release tag
25+ if : github.event_name == 'workflow_dispatch'
26+ shell : bash
27+ run : |
28+ set -e
29+ git tag ${{ github.event.inputs.version }}
30+ git push origin ${{ github.event.inputs.version }}
31+
32+ - name : Cache packages
33+ uses : actions/cache@v4
34+ with :
35+ path : ~/.nuget/packages
36+ key : ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }}
37+
38+ - name : Publish release
39+ run : ./.nuke/build.cmd PublishGitHub --ReleaseVersion ${{ github.event.inputs.version || github.ref_name }}
40+ env :
41+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments