forked from opensearch-project/opensearch-net
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 910 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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