Skip to content

Commit

Permalink
attempt to fix the pipeline (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucat1 committed Dec 7, 2023
1 parent 5f21ef8 commit a49174b
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
jobs:
release:
name: Release - ${{ matrix.platform.target }}
if: startsWith( github.ref, 'refs/tags/v' )
strategy:
matrix:
platform:
Expand Down Expand Up @@ -58,18 +57,20 @@ jobs:
target: ${{ matrix.platform.target }}
args: "--locked --release"
strip: true
- name: Print target directory
run: tree target
- name: Publish release artifacts
- name: Publish action artifact
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.paltform.bin }}-${{ matrix.platform.target}}
path: target/release/${{ matrix.platform.bin }}
if: startsWith( github.ref, 'refs/tags/v' )
path: target/${{ matrix.platform.target }}release/${{ matrix.platform.bin }}
- name: Publish GitHub release
uses: softprops/action-gh-release@v1
with:
draft: true
files: "server*"
draft: false
# body_path: Changes.md
if: startsWith( github.ref, 'refs/tags/v' )
- name: Publish release artifact
uses: actions/upload-release-asset@v1
with:
asset_path: target/${{ matrix.platform.target }}release/${{ matrix.platform.bin }}
asset_name: server-${{ matrix.platform.target }}
if: startsWith( github.ref, 'refs/tags/v' )

0 comments on commit a49174b

Please sign in to comment.