Merge branch 'main' into dependabot/nuget/Proc-0.9.1 #3075
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Release Candidate | |
on: [pull_request, push] | |
jobs: | |
create-release-artifacts: | |
name: Create Release Artifacts | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: | | |
5.0.x | |
6.0.x | |
8.0.x | |
- uses: actions/cache@v4 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.?sproj') }} | |
restore-keys: | | |
${{ runner.os }}-nuget- | |
- name: Determine Version | |
run: echo "VERSION=$(jq -r '.version' global.json)" | tee -a "$GITHUB_ENV" | |
- name: Generate Release | |
run: | | |
./build.sh release $VERSION | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: opensearch-net-${{env.VERSION}}-release-candidate | |
path: build/output/*.nupkg |