-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1.14 KB
/
cicd-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
34
35
36
37
38
39
40
41
42
name: cicd-release
on:
push:
tags:
- "v*"
jobs:
build-and-test:
uses: ./.github/workflows/build-and-test.yml
release:
name: Create & publish release
runs-on: ubuntu-latest
needs: build-and-test
steps:
# Download jar files.
- name: Download Jar with dependencies
uses: actions/download-artifact@v4
with:
name: jar-with-dependencies
- name: Download Jar without dependencies
uses: actions/download-artifact@v4
with:
name: jar-without-dependencies
# Create release
- name: Create release
uses: ncipollo/release-action@v1
with:
artifacts: "*.jar"
generateReleaseNotes: true
env:
GITHUB_TOKEN: ${{ github.token }}
# Download nupkg file.
- name: Download NuGet Package
uses: actions/download-artifact@v4
with:
name: nupkg
# Publish NuGet package.
- name: Publish NuGet package
run: dotnet nuget push "CrossBreeze.CrossGenerate.*.nupkg" --source "https://nuget.pkg.github.com/CrossBreezeNL/index.json" --api-key ${{secrets.GITHUB_TOKEN}}