Skip to content

Commit

Permalink
feat: publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
znxftw committed Dec 4, 2024
1 parent 68db9ca commit ac14990
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: publish
run-name: "Generate binaries for ${{ inputs.commit }}"
on:
workflow_dispatch:
inputs:
commit:
description: "Commit id to generate binaries for"
required: true

jobs:
linux-x64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.commit }}
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: Publish
run: dotnet publish -c Release -p:PublishProfile=FolderProfile
- name: Compress archive
working-directory: Rudim/bin/Release/net9.0/publish/
run: tar -xvzf linux-x64.tar.gz *
- uses: actions/upload-artifact@v4
with:
name: linux-x64.tar.gz
path: Rudim/bin/Release/net9.0/publish/linux-x64.tar.gz

4 changes: 2 additions & 2 deletions Rudim/Properties/PublishProfiles/FolderProfile.pubxml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<TargetFramework>net6.0</TargetFramework>
<SelfContained>true</SelfContained>
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
<PublishSingleFile>false</PublishSingleFile>
<PublishSingleFile>true</PublishSingleFile>
</PropertyGroup>
</Project>
</Project>

0 comments on commit ac14990

Please sign in to comment.