Skip to content

Commit

Permalink
update GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Dec 23, 2021
1 parent c698eaf commit acd8125
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/build-binaries.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: Build Binaries
name: Create Release
on:
release:
types: [created]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
arch: [linux-x64, linux-arm64]
arch: [linux-x64, linux-musl-x64, linux-arm, linux-arm64]
steps:
- name: Checkout GitHub actions
uses: actions/checkout@v2
Expand All @@ -21,16 +21,10 @@ jobs:
- name: Install dependencies
run: dotnet restore

- name: Build code
run: dotnet build --configuration Release --no-restore

- name: Test code
run: dotnet test --no-restore --verbosity normal

- name: Publish application
run: dotnet publish -c Release -o "/home/runner/work/publish" -r ${{ matrix.arch }} --self-contained true -p:PublishTrimmed=true -p:PublishSingleFile=true

- name: Upload
- name: Upload Binary
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit acd8125

Please sign in to comment.