Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
"paket"
],
"rollForward": false
},
"easybuild.shipit": {
"version": "3.0.0",
"commands": [
"shipit"
],
"rollForward": false
}
}
}
59 changes: 59 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Publish NuGet

on:
push:
branches: [master]

permissions:
contents: write
pull-requests: write

jobs:
shipit-pr:
name: ShipIt - Pull Request
runs-on: ubuntu-latest
if: "!startsWith(github.event.head_commit.message, 'chore: release ')"
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Setup .NET Core
uses: actions/setup-dotnet@v5
with:
dotnet-version: 9.0.x

- name: Install tools
run: dotnet tool restore

- name: ShipIt (Pull Request)
run: dotnet shipit --allow-branch master
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

release:
name: Release
runs-on: ubuntu-latest
timeout-minutes: 10
if: "startsWith(github.event.head_commit.message, 'chore: release ')"
steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Setup .NET Core
uses: actions/setup-dotnet@v5
with:
dotnet-version: 9.0.x

- name: Install just
uses: extractions/setup-just@v4

- name: Restore dependencies
run: just restore

- name: Build, pack and push
run: just release
env:
NUGET_KEY: ${{ secrets.NUGET_API_KEY }}
55 changes: 0 additions & 55 deletions .github/workflows/release-please.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .release-please-manifest.json

This file was deleted.

5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
---
last_commit_released: 304800ecb2ab9c78f6062472f4cb2f76316bfaff
name: Feliz.ViewEngine
---

# Changelog

All notable changes to this project will be documented in this file.
Expand Down
22 changes: 18 additions & 4 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Feliz.ViewEngine build commands
# Install just: https://github.com/casey/just

set dotenv-load

src_path := "src"
test_path := "test"
bulma_path := "Feliz.Bulma.ViewEngine"
Expand Down Expand Up @@ -35,13 +37,25 @@ test:
# Build and run tests
check: build test

# Create NuGet packages
# Create NuGet packages with version from CHANGELOG.md
pack:
dotnet pack -c Release
#!/usr/bin/env bash
set -euo pipefail
VERSION=$(grep -m1 '^## ' CHANGELOG.md | sed 's/^## \[\?\([^] ]*\).*/\1/')
dotnet pack -c Release -p:PackageVersion=$VERSION -p:InformationalVersion=$VERSION

# Create NuGet packages with specific version (used in CI)
# Create NuGet packages with specific version
pack-version version:
dotnet pack -c Release -p:PackageVersion={{version}}
dotnet pack -c Release -p:PackageVersion={{version}} -p:InformationalVersion={{version}}

# Release: pack and push both packages to NuGet (used in CI)
release: pack
dotnet nuget push '{{src_path}}/bin/Release/*.nupkg' -s https://api.nuget.org/v3/index.json -k $NUGET_KEY
dotnet nuget push '{{bulma_path}}/bin/Release/*.nupkg' -s https://api.nuget.org/v3/index.json -k $NUGET_KEY

# Run EasyBuild.ShipIt for release management
shipit *args:
dotnet shipit {{args}}

# Full setup and test
setup: restore build test
Expand Down
13 changes: 0 additions & 13 deletions release-please-config.json

This file was deleted.