fixed regex bug #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build test and publish | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ master ] | |
paths: | |
- "**.nuspec" | |
pull_request: | |
branches: [ master ] | |
paths: | |
- "**.nuspec" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: NuGet/[email protected] | |
with: | |
nuget-api-key: ${{secrets.NUGET_API_KEY}} | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 8.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --no-restore --configuration Release | |
- name: Test | |
run: dotnet test --no-build --verbosity normal --configuration Release | |
env: | |
TESTSECRET: ${{secrets.TESTSECRET}} | |
SQLCONNSTRING: ${{secrets.SQLCONNSTRING}} | |
- name: Generate executable (win) | |
run: dotnet publish Zoro/Zoro.csproj --configuration Release --runtime win-x64 /p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true --self-contained true | |
- name: Generate executable (linux) | |
run: dotnet publish Zoro/Zoro.csproj --configuration Release --runtime linux-x64 /p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true --self-contained true | |
- name: Pack | |
run: nuget pack Zoro.Processor/Dandraka.Zoro.nuspec | |
- name: Publish | |
run: nuget push Dandraka.Zoro.*.nupkg -Source https://www.nuget.org/api/v2/package |