Skip to content

v1.3.0

v1.3.0 #13

Workflow file for this run

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