Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
feat: initial work to support release please
Browse files Browse the repository at this point in the history
  • Loading branch information
tanderson-ld committed Feb 12, 2024
1 parent 3dc9dba commit cc50bd2
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ runs:
run: |
for pkg in $(find ./nupkgs -name '*.nupkg' -o -name '*.snupkg'); do
echo "publishing ${pkg}"
dotnet nuget push "${pkg}" -ApiKey ${{ env.NUGET_API_KEY }} -Source https://www.nuget.org
# dotnet nuget push "${pkg}" -ApiKey ${{ env.NUGET_API_KEY }} -Source https://www.nuget.org
echo "published $pkg"
done
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
description: 'Is this a dry run. If so no package will be published.'
type: boolean
required: true
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+.*'

jobs:
# Building is done on mac runner due to xcode build dependencies
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Release Please
on:
push:
branches:
- main
- ta/sc-233251/release-please-support

jobs:
release-please:
runs-on: ubuntu-latest

permissions:
id-token: write # Needed if using OIDC to get release secrets.
contents: write # Contents and pull-requests are for release-please to make releases.
pull-requests: write

steps:
- uses: google-github-actions/release-please-action@v4
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
default-branch: main
2 changes: 2 additions & 0 deletions src/LaunchDarkly.ClientSdk/LaunchDarkly.ClientSdk.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<!--x-release-please-start-version-->
<Version>5.0.0-alpha.2</Version>
<!--x-release-please-end-->
<!-- The BUILDFRAMEWORKS variable allows us to override the target frameworks in
a situation where we need to build only the .NET Standard target and do not
want to even mention the Android/iOS/Mac/Windows targets, because we're in an environment
Expand Down

0 comments on commit cc50bd2

Please sign in to comment.