Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanpoland committed Jan 21, 2025
1 parent 676ed2c commit 2ef57d2
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,24 @@ jobs:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
binary_path: target/release/ferrumc
asset_name: ferrumc-linux-amd64
binary_path: target/release/horizon
asset_name: horizon-linux-amd64
- os: windows-latest
target: x86_64-pc-windows-msvc
binary_path: target/release/ferrumc.exe
asset_name: ferrumc-windows-amd64.exe
binary_path: target/release/horizon.exe
asset_name: horizon-windows-amd64.exe
- os: macos-latest
target: x86_64-apple-darwin
binary_path: target/release/ferrumc
asset_name: ferrumc-macos-amd64
binary_path: target/release/horizon
asset_name: horizon-macos-amd64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3

- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly # Changed to nightly since your Dockerfile uses it
toolchain: nightly
target: ${{ matrix.target }}

- name: Install Linux dependencies
Expand Down Expand Up @@ -78,18 +78,19 @@ jobs:

- name: Prepare asset
run: |
mkdir -p release
if [ "${{ matrix.os }}" = "windows-latest" ]; then
cp server/target/${{ matrix.target }}/release/ferrumc.exe ${{ matrix.asset_name }}
cp server/target/${{ matrix.target }}/release/horizon.exe release/${{ matrix.asset_name }}
else
cp server/target/${{ matrix.target }}/release/ferrumc ${{ matrix.asset_name }}
cp server/target/${{ matrix.target }}/release/horizon release/${{ matrix.asset_name }}
fi
shell: bash

- name: Upload binary to release
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ needs.check-version.outputs.version }}
files: ${{ matrix.asset_name }}
files: release/${{ matrix.asset_name }}
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Changed to use default token
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2ef57d2

Please sign in to comment.