v1.3.0 #13
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
| name: Publish to nuget feed | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| package-and-publish-lib: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v1 | |
| with: | |
| dotnet-version: 10.0.x | |
| - name: Generate NuGet package | |
| run: | | |
| dotnet pack src/SuperSimpleBlazorDropzone/SuperSimpleBlazorDropzone.csproj \ | |
| --configuration Release \ | |
| -o packages | |
| - name: Publish NuGet package | |
| run: dotnet nuget push packages/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json | |
| gh-pages: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Checkout the code | |
| - uses: actions/checkout@v2 | |
| # Install .NET 10.0 SDK | |
| - name: Setup .NET 8 preview | |
| uses: actions/setup-dotnet@v1 | |
| with: | |
| dotnet-version: '10.0.x' | |
| include-prerelease: true | |
| # Generate the website | |
| - name: Publish | |
| run: dotnet publish ./SuperSimpleBlazorDropzone.Sample/SuperSimpleBlazorDropzone.Sample.csproj --configuration Release --output build | |
| # Publish the website | |
| - name: GitHub Pages action | |
| if: ${{ github.ref == 'refs/heads/main' }} | |
| uses: peaceiris/actions-gh-pages@v3.6.1 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_branch: gh-pages | |
| publish_dir: build/wwwroot | |
| allow_empty_commit: false | |
| keep_files: false | |
| force_orphan: true |