Fixing release actions on Linux #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |