-
Notifications
You must be signed in to change notification settings - Fork 2
30 lines (23 loc) · 813 Bytes
/
ci.yml
File metadata and controls
30 lines (23 loc) · 813 Bytes
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
name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
pack:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Determine version for NuGet package
run: echo NUGET_VERSION=0.$(date '+%Y.%m')-ci$(date '+%d%H%M%S') >> $GITHUB_ENV
- name: Replace version number in nuspec files
run: 'sed -i -e "s/{{NuGetVersion}}/$NUGET_VERSION/g" *.nuspec'
- name: Setup NuGet.exe for use with actions
uses: NuGet/setup-nuget@v1.2.0
- name: Create main package
run: nuget pack Neolution.CodeAnalysis.nuspec
- name: Create TestsRuleset package
run: nuget pack Neolution.CodeAnalysis.TestsRuleset.nuspec