-
Notifications
You must be signed in to change notification settings - Fork 20
32 lines (28 loc) · 1.02 KB
/
dotnetcore.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
name: Publish
on: [push]
jobs:
build:
strategy:
matrix:
runs-on: [windows-latest]
runs-on: ${{ matrix.runs-on }}
name: Running tests on ${{ matrix.runs-on }}.
steps:
- uses: actions/checkout@master
with:
dotnet-version: 6.0.4
- name: Build & Run tests
run: dotnet test --configuration Release
- name: Publish
if: github.ref == 'refs/heads/master'
run: |
$scriptLocationDirectory=(Get-Location).ToString()
$scriptLocationFilePath=[System.IO.Path]::Combine($scriptLocationDirectory, "Publish.Nuget.ps1")
$nugetExecutable=[System.IO.Path]::Combine($scriptLocationDirectory, "nuget", "nuget.exe")
$projects = @('Musoq.Converter', 'Musoq.Evaluator', 'Musoq.Parser', 'Musoq.Plugins', 'Musoq.Schema')
foreach ($project in $projects) {
pushd
cd "./$project/bin/Release"
Invoke-Expression "$scriptLocationFilePath $nugetExecutable $project '${{ secrets.nuget_musoq_key }}'"
popd
}