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
48 changes: 48 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Release

on:
workflow_dispatch: {}

jobs:
get-version:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.changelog.outputs.version }}
steps:
- uses: actions/checkout@v4

- name: Extract version from CHANGELOG.md
id: changelog
run: |
version=$(grep -m 1 -oP '^##\s*\[\K[0-9]+\.[0-9]+\.[0-9]+' CHANGELOG.md)
echo "version=$version" >> $GITHUB_OUTPUT
tag:
needs: get-version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0

- name: Create and push git tag
run: |
version=${{ needs.get-version.outputs.version }}

git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

git tag "v$version"
git push origin "v$version"
docker:
needs: get-version
uses: ./.github/workflows/docker_build.yml
with:
version: ${{ needs.get-version.outputs.version }}
secrets: inherit

nuget:
needs: get-version
uses: ./.github/workflows/dotnet_tool_build.yml
with:
version: ${{ needs.get-version.outputs.version }}
secrets: inherit
4 changes: 2 additions & 2 deletions .github/workflows/release_prep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:

- name: "commit changes"
run: |
git config --local user.email "${{ github.repository_owner }}@users.noreply.github.com"
git config --local user.name "GitHub Actions"
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Release prep v${{ github.event.inputs.version }}"

Expand Down
4 changes: 2 additions & 2 deletions src/BuslyCLI.Console/BuslyCLI.Console.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<RootNamespace>BuslyCLI</RootNamespace>
<PackAsTool>true</PackAsTool>
<!-- Dotnet tool packageid in nuget -->
<PackageId>dotnet-busly-cli</PackageId>
<ToolCommandName>busly-cli</ToolCommandName>
<PackageId>dotnet-busly</PackageId>
<ToolCommandName>dotnet-busly</ToolCommandName>
</PropertyGroup>

<ItemGroup>
Expand Down
3 changes: 2 additions & 1 deletion website/docs/getting-started/quick-start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ docker run --rm tragiccode/busly-cli --help
<TabItem value="dotnet" label=".NET tool (via NuGet)">

```bash
dotnet tool install --global dotnet-busly-cli
dotnet tool install --global dotnet-busly
dotnet-busly --help
```

</TabItem>
Expand Down