-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 1020 Bytes
/
Linux.yml
File metadata and controls
46 lines (39 loc) · 1020 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Deploy Linux
on:
push:
branches: [ "main" ]
paths-ignore:
- '**.md'
pull_request:
branches: [ "main" ]
paths-ignore:
- '**.md'
jobs:
Deploy_Linux:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install .NET 10
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0.x
- name: Publish
run: dotnet publish /p:PublishProfile=Linux
- name: Verify publish output
run: |
if [ ! -d "publish" ]; then
echo "::error::publish/ directory not found"
exit 1
fi
count=$(find publish -type f | wc -l)
if [ "$count" -eq 0 ]; then
echo "::error::publish/ directory is empty"
exit 1
fi
echo "publish/ contains $count file(s)"
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: linux-publish
path: publish/