Skip to content

Merge branch 'master' into dependabot/bundler/docs/rexml-3.2.8 #227

Merge branch 'master' into dependabot/bundler/docs/rexml-3.2.8

Merge branch 'master' into dependabot/bundler/docs/rexml-3.2.8 #227

Workflow file for this run

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@v4
with:
dotnet-version: 8.0.x
ref: master
- 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
}