fix: project references in release workflow (#162) #105
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 Release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build_test_and_release: | |
name: Build, test, and release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 8.0.101 | |
- name: Install dependencies | |
run: dotnet restore jobba.sln | |
- name: Build | |
run: dotnet build jobba.sln --configuration Release --no-restore | |
- name: Test | |
run: dotnet test jobba.sln --logger GitHubActions --no-restore --verbosity normal --filter FullyQualifiedName\!~IntegrationTests | |
- name: Pack | |
run: dotnet pack **/Jobba.Core.csproj --configuration Release --output out/pack --no-build | |
- name: Pack | |
run: dotnet pack **/Jobba.MassTransit.csproj --configuration Release --output out/pack --no-build | |
- name: Pack | |
run: dotnet pack **/Jobba.Redis.csproj --configuration Release --output out/pack --no-build | |
- name: Pack | |
run: dotnet pack **/Jobba.Store.Mongo.csproj --configuration Release --output out/pack --no-build | |
- name: Pack | |
run: dotnet pack **/Jobba.Store.EF.csproj --configuration Release --output out/pack --no-build | |
- name: Pack | |
run: dotnet pack **/Jobba.Store.EF.Sql.csproj --configuration Release --output out/pack --no-build | |
- name: Pack | |
run: dotnet pack **/Jobba.Store.EF.Sqlite.csproj --configuration Release --output out/pack --no-build | |
- name: Pack | |
run: dotnet pack **/Jobba.Cron.csproj --configuration Release --output out/pack --no-build | |
- name: Publish | |
run: dotnet nuget push ./out/pack/*.nupkg --api-key ${{secrets.FIREBEND_NUGET_KEY}} --skip-duplicate --source https://api.nuget.org/v3/index.json |