Skip to content

Commit

Permalink
👷 Fix GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
RemiBardon committed Jan 1, 2024
1 parent 4275d8e commit 9452b6a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- "v*.*.*"

env:
SRC: src/orangutan
BIN: orangutan-server

jobs:
Expand Down Expand Up @@ -62,14 +63,14 @@ jobs:
run: rustup target add ${{ matrix.target }}

- name: Build for ${{ matrix.target }}
working-directory: src/orangutan
run: cargo build --release --bin $BIN --target ${{ matrix.target }}
working-directory: ${{ env.SRC }}
run: cargo build --release --bin ${{ env.BIN }} --target ${{ matrix.target }}

- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: $BIN-$tag-${{ matrix.target }}
path: src/orangutan/target/${{ matrix.target }}/release/$BIN
name: ${{ env.BIN }}-${{ tag }}-${{ matrix.target }}
path: ${{ env.SRC }}/target/${{ matrix.target }}/release/${{ env.BIN }}
if-no-files-found: error

release:
Expand All @@ -93,6 +94,6 @@ jobs:
- name: Release new version
uses: softprops/action-gh-release@v1
with:
name: $tag
name: ${{ tag }}
body: "⚠️ Changelog not yet provided."
files: $artifacts/*

0 comments on commit 9452b6a

Please sign in to comment.