Skip to content

Commit

Permalink
workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
softlion committed Nov 25, 2023
1 parent 6bed7e9 commit 5baf073
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,22 @@ name: publish to nuget
on:
push:
branches: [ main ]
paths-ignore:
- '**/*.md'
- '**/*.gitignore'
- '**/*.gitattributes'
- '.github/**/*.*'
workflow_dispatch:

permissions:
contents: read

env:
DOTNETVERSION: 8.0
DOTNET_NOLOGO: true # Disable the .NET logo
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true # Disable the .NET first time experience
DOTNET_CLI_TELEMETRY_OPTOUT: true # Disable sending .NET CLI telemetry

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -19,7 +34,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0
dotnet-version: '${{env.DOTNETVERSION}}'

- name: Restore dependencies
run: dotnet restore
Expand Down

0 comments on commit 5baf073

Please sign in to comment.