Update cloudscribe-develop.yml #4
This file contains hidden or 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
| # This workflow will build a .NET project | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | |
| name: cloudscribe-simplecontactform-develop-nuget-build | |
| on: | |
| push: | |
| branches: [ "develop" ] | |
| workflow_dispatch: | |
| # pull_request: | |
| # branches: [ "develop" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Setup NuGet | |
| run: dotnet nuget add source ${{ secrets.NUGET_SOURCE_URL }} -u ${{secrets.NUGET_USERNAME }} -p ${{ secrets.NUGET_PASSWORD }} --store-password-in-clear-text | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Build | |
| run: dotnet build -c Release | |
| - name: Create NuGet package | |
| run: dotnet pack -c Release | |
| - name: Publish NuGet package | |
| run: dotnet nuget push **/*.nupkg --source ${{ secrets.NUGET_SOURCE_URL }} | |
| - name: Remote Repository Dispatch | |
| uses: peter-evans/repository-dispatch@v3 | |
| with: | |
| token: ${{ secrets.GHB_PAT }} | |
| repository: GreatHouseBarn/cloudscribe-testing | |
| event-type: cs.SimpleContactForm |