-
Notifications
You must be signed in to change notification settings - Fork 46
38 lines (36 loc) · 1019 Bytes
/
linux-deb-deploy.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
name: Deploy Linux Deb Package
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET 8
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Install dotnet-deb
run: |
dotnet tool install --tool-path src/Camelot dotnet-deb
- name: Build Debian Package
run: |
cd src/Camelot
./dotnet-deb install
./dotnet-deb --configuration Release
- name: Archive Artifact
run: |
cd src/Camelot/bin/Release/net8.0
tar -czvf CamelotLinuxDeb.tar.gz camelot*.deb
- name: Upload Release Asset
id: upload-release-asset
uses: svenstaro/upload-release-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
file: ./src/Camelot/bin/Release/net8.0/CamelotLinuxDeb.tar.gz
asset_name: CamelotLinuxDeb.tar.gz