-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (30 loc) · 972 Bytes
/
cd.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
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/[email protected]
with:
files: |
/home/runner/work/MCP2221IO/MCP2221IO/MCP2221IO/bin/Release/MCP2221IO*.nupkg
/home/runner/work/MCP2221IO/MCP2221IO/PModAqs/bin/Release/PModAqs*.nupkg
/home/runner/work/MCP2221IO/MCP2221IO/MCP2221IOConsole/bin/Release/MCP2221IO.Console*.nupkg
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}