Skip to content

Commit a110d0a

Browse files
committed
feat: add CI workflow, update project files, and add assets
- Added GitHub Actions build workflow in `.github/workflows/build.yml` - Added initial `Readme.md` file with basic project information - Updated `Sprout.fsproj` to reflect changes in project structure - Added new `logo.png` asset for branding - Modified `sprout.png` with updated visuals
1 parent 3fd128b commit a110d0a

File tree

5 files changed

+86
-2
lines changed

5 files changed

+86
-2
lines changed

.github/workflows/build.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: Build
2+
3+
on:
4+
workflow_dispatch:
5+
6+
push:
7+
branches: [main]
8+
9+
pull_request:
10+
branches: [main]
11+
12+
permissions:
13+
pull-requests: read
14+
contents: write
15+
16+
jobs:
17+
get-version:
18+
runs-on: ubuntu-latest
19+
concurrency:
20+
group: ${{ github.workflow }}-build
21+
cancel-in-progress: true
22+
outputs:
23+
tag: ${{ steps.tag.outputs.new_tag }}
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
with:
28+
fetch-depth: 0
29+
- name: Get version
30+
id: tag
31+
uses: anothrNick/[email protected]
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
WITH_V: true
35+
DEFAULT_BUMP: patch
36+
MAJOR_STRING_TOKEN: feat!
37+
MINOR_STRING_TOKEN: feat
38+
PRERELEASE: ${{ !!github.event.pull_request }}
39+
PRERELEASE_SUFFIX: prerelease
40+
VERBOSE: true
41+
build:
42+
runs-on: ubuntu-latest
43+
needs: get-version
44+
steps:
45+
- name: Checkout
46+
uses: actions/checkout@v4
47+
with:
48+
fetch-depth: 0
49+
50+
- name: Setup dotnet
51+
uses: actions/setup-dotnet@v4
52+
with:
53+
dotnet-version: '8.0.x'
54+
55+
- name: Build package
56+
env:
57+
VERSION: ${{ needs.get-version.outputs.tag }}
58+
run: |
59+
dotnet build --configuration Release --no-restore -p:NuGetVersion=${VERSION:1}
60+
61+
- name: Add NuGet source
62+
env:
63+
NUGET_USERNAME: ${{ vars.NUGET_USERNAME }}
64+
NUGET_PASSWORD: ${{ secrets.NUGET_PASSWORD }}
65+
run: dotnet nuget add source --username ${NUGET_USERNAME} --password ${NUGET_PASSWORD} --store-password-in-clear-text --name nuget "https://nuget.pkg.github.com/${NUGET_USERNAME}/index.json"
66+
67+
- name: Publish package
68+
env:
69+
VERSION: ${{ needs.get-version.outputs.tag }}
70+
API_KEY: ${{ secrets.API_KEY }}
71+
run: dotnet nuget push "bin/Release/net9.0/Sprout.${VERSION}.nupkg" --api-key ${API_KEY} --source nuget --skip-duplicate

Readme.md

Whitespace-only changes.

Sprout.fsproj

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,32 @@
77
<PackageId>Sprout</PackageId>
88
<Version>0.0.1-dev</Version>
99
<Title>Sprout: BDD Testing for F#</Title>
10-
<Description>Sprout is a Behavior-Driven Development (BDD) testing framework for F# that allows you to write tests in a natural language style, making it easier to understand and maintain.</<Description>
10+
<Description>Sprout is a Behavior-Driven Development (BDD) testing framework for F# that allows you to write tests in a natural language style, making it easier to understand and maintain.</Description>
1111
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1212
<PackageProjectUrl>https://github.com/dlidstrom/Sprout</PackageProjectUrl>
13-
<PackageIcon>sprout.png</PackageIcon>
13+
<PackageIcon>logo.png</PackageIcon>
1414
<Authors>Daniel Lidström</Authors>
15+
<DebugType>embedded</DebugType>
16+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
17+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
1518
</PropertyGroup>
1619

20+
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
21+
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
22+
</PropertyGroup>
23+
24+
<ItemGroup>
25+
<PackageReference Include="Microsoft.SourceLink.Github" Version="8.0.0" PrivateAssets="All" />
26+
</ItemGroup>
27+
1728
<ItemGroup>
1829
<Compile Include="Sprout.fs" />
1930
</ItemGroup>
2031

2132
<ItemGroup>
2233
<None Include="Readme.md" Pack="true" PackagePath="\" />
34+
<None Include="sprout.png" Pack="true" PackagePath="\" />
35+
<None Include="logo.png" Pack="true" PackagePath="\" />
2336
</ItemGroup>
2437

2538
</Project>

logo.png

164 KB
Loading

sprout.png

-945 KB
Loading

0 commit comments

Comments
 (0)