Skip to content

Fixing release actions on Linux #6

Fixing release actions on Linux

Fixing release actions on Linux #6

name: Deploy Linux Rpm Package
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET 6
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Install dotnet-rpm
run: |
dotnet tool install --tool-path src/Camelot dotnet-rpm
- name: Build Rpm Package
run: |
cd src/Camelot
./dotnet-rpm install
rm Directory.Build.props
./dotnet-rpm --configuration Release
- name: Archive Artifact
run: |
cd src/Camelot/bin/Release/net8.0
tar -czvf CamelotLinuxRpm.tar.gz camelot*.rpm
- 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/CamelotLinuxRpm.tar.gz
asset_name: CamelotLinuxRpm.tar.gz