Skip to content

Update to dotnet 8 (#20) #60

Update to dotnet 8 (#20)

Update to dotnet 8 (#20) #60

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Build and publish
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Fetch all history for all tags and branches
run: git fetch --prune --unshallow
- name: Use Dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.100'
- name: Build with dotnet
run: dotnet build JHipsterNet.sln --configuration Release /p:Version=1.0.11
- name: Pack JHipsterNet.Core with dotnet
run: dotnet pack src/JHipsterNet.Core/JHipsterNet.Core.csproj --output nuget-packages --configuration Release --include-symbols -p:PackageVersion=1.0.11
- name: Pack JHipsterNet.Web with dotnet
run: dotnet pack src/JHipsterNet.Web/JHipsterNet.Web.csproj --output nuget-packages --configuration Release --include-symbols -p:PackageVersion=1.0.11
- name: Push with dotnet
run: dotnet nuget push '**/*.nupkg' --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate