Skip to content

Update workflows

Update workflows #45

name: "Publish Nightly"
on:
push:
branches:
- main
jobs:
publish_nightly:
runs-on: ubuntu-latest
if: "!contains(format('{0} {1} {2}', github.event.head_commit.message, github.event.pull_request.title), '[ci-skip]', '[nuget-skip]')"

Check failure on line 10 in .github/workflows/publish_nightly.yml

View workflow run for this annotation

GitHub Actions / Publish Nightly

Invalid workflow file

The workflow is not valid. .github/workflows/publish_nightly.yml (Line: 10, Col: 9): Too many parameters supplied: '('. Located at position 10 within expression: !contains(format('{0} {1} {2}', github.event.head_commit.message, github.event.pull_request.title), '[ci-skip]', '[nuget-skip]')
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
- name: "Setup .NET"
uses: "actions/setup-dotnet@v2"
with:
dotnet-version: |
7.0.x
8.0.x
- name: Build
run: dotnet build -c Release
- name: Test
run: dotnet test
- name: "Build Nightly Nuget Packages"
run: "mkdir build && dotnet pack -p:SymbolPackageFormat=snupkg --include-symbols --include-source -o build -p:VersionSuffix='nightly-0${{ github.run_number }}' -p:BuildNumber=0$(( ${{ github.run_number }} ))"
- name: "Publish Nightly Nuget Packages"
run: "dotnet nuget push \"build/*\" -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json" # If the package version does not comply with SemVer, it will be set as a pre-release version automatically.