Skip to content

Commit

Permalink
Fix version properties to allow for dynamic alpha versions
Browse files Browse the repository at this point in the history
  • Loading branch information
hallipr committed Jun 4, 2024
1 parent b856a1f commit fa4cc24
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ jobs:

- name: Build
run: dotnet build
-c Release
--configuration Release
${{ env.version_suffix_args }}
working-directory: .dotnet

- name: Test
run: dotnet test
Expand All @@ -36,15 +35,13 @@ jobs:
--logger "trx;LogFileName=${{github.workspace}}/artifacts/test-results/full.trx"
env:
SECRET_VALUE: ${{ secrets.OPENAI_TOKEN }}
working-directory: .dotnet

- name: Pack
run: dotnet pack
--no-build
--configuration Release
--output "${{github.workspace}}/artifacts/packages"
${{ env.version_suffix_args }}
working-directory: .dotnet

- name: Upload artifact
uses: actions/upload-artifact@v2
Expand All @@ -60,7 +57,6 @@ jobs:
--username ${{ github.actor }}
--password ${{ secrets.GITHUB_TOKEN }}
--store-password-in-clear-text
working-directory: .dotnet

- name: Publish
if: github.event_name != 'pull_request'
Expand All @@ -69,4 +65,3 @@ jobs:
--source "github"
--api-key ${{ secrets.GITHUB_TOKEN }}
--skip-duplicate
working-directory: .dotnet
7 changes: 1 addition & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
release:
types: [published]


jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -19,8 +18,7 @@ jobs:

- name: Build
run: dotnet build
-c Release
working-directory: .dotnet
--configuration Release

- name: Test
run: dotnet test
Expand All @@ -30,7 +28,6 @@ jobs:
--logger "trx;LogFileName=${{github.workspace}}/artifacts/test-results/full.trx"
env:
SECRET_VALUE: ${{ secrets.OPENAI_TOKEN }}
working-directory: .dotnet

# Pack the client nuget package and include urls back to the repository and release tag
- name: Pack
Expand All @@ -40,7 +37,6 @@ jobs:
--output "${{github.workspace}}/artifacts/packages"
/p:RepositoryUrl="${{ github.repository }}"
/p:PackageProjectUrl="${{ github.repository }}/tree/${{ github.event.release.tag_name }}"
working-directory: .dotnet

# Append the nuget package to the github release that triggered this workflow
- name: Upload release asset
Expand All @@ -62,7 +58,6 @@ jobs:
--username ${{ github.actor }}
--password ${{ secrets.GITHUB_TOKEN }}
--store-password-in-clear-text
working-directory: .dotnet

# - name: Publish
# run: dotnet nuget push
Expand Down
3 changes: 2 additions & 1 deletion src/OpenAI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<PropertyGroup>
<Description>This is the OpenAI client library for developing .NET applications with rich experience.</Description>
<AssemblyTitle>SDK Code Generation OpenAI</AssemblyTitle>
<Version>2.0.0-beta.1</Version>
<VersionPrefix>2.0.0</VersionPrefix>
<VersionSuffix>beta.1</VersionSuffix>
<PackageTags>OpenAI</PackageTags>
<TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
Expand Down

0 comments on commit fa4cc24

Please sign in to comment.