-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (28 loc) · 771 Bytes
/
cd.yml
File metadata and controls
32 lines (28 loc) · 771 Bytes
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
name: Publish
on:
release:
types: [published]
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Pack
run: dotnet pack --configuration Release --no-restore
- name: Publish
uses: softprops/action-gh-release@v2.0.8
with:
files: |
/home/runner/work/RfmOta/RfmOta/RfmOta/bin/Release/RfmOta*.nupkg
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}