Fixed Blockbench models!! #169
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 Bliss | |
on: | |
release: | |
types: [ "published" ] | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
# Build Bliss | |
build: | |
runs-on: ubuntu-latest | |
# Run | |
steps: | |
- uses: actions/checkout@v4 | |
# Setup .NET | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 9.0.x | |
# Restore dependencies | |
- name: Restore dependencies | |
run: dotnet restore | |
# Build Bliss | |
- name: Build | |
run: dotnet build --no-restore | |
# Test | |
- name: Test | |
run: dotnet test --no-build --verbosity normal | |
# Publish to NuGet | |
publish-nuget: | |
runs-on: ubuntu-latest | |
# Run | |
steps: | |
- uses: actions/checkout@v4 | |
# Setup .NET | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 9.0.x | |
# Restore dependencies | |
- name: Restore dependencies | |
run: dotnet restore | |
# Build and pack NuGet package | |
- name: Pack NuGet package | |
if: github.event_name == 'release' | |
run: dotnet pack src/Bliss -p:PackageVersion=${{ github.event.release.tag_name }} --configuration Release --output nuget | |
# Publish NuGet package | |
- name: Publish NuGet package | |
if: github.event_name == 'release' | |
run: dotnet nuget push nuget/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json |