This commit is contained in:
@@ -8,7 +8,6 @@ on:
|
||||
jobs:
|
||||
build-and-release:
|
||||
runs-on: ubuntu-latest
|
||||
# Added permissions explicitly to prevent the "Blocked" error
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
@@ -37,8 +36,9 @@ jobs:
|
||||
- name: Prepare Binaries
|
||||
run: |
|
||||
mkdir -p release-artifacts
|
||||
cp target/x86_64-unknown-linux-gnu/release/escape_room_server release-artifacts/escape_room_server-x86_64
|
||||
cp target/aarch64-unknown-linux-gnu/release/escape_room_server release-artifacts/escape_room_server-aarch64
|
||||
# We use find to locate the binaries regardless of the exact target folder structure
|
||||
find target/x86_64-unknown-linux-gnu/release -maxdepth 1 -type f -name "escape_room_server" -exec cp {} release-artifacts/escape_room_server-x86_64 \; || cp target/release/escape_room_server release-artifacts/escape_room_server-x86_64
|
||||
find target/aarch64-unknown-linux-gnu/release -maxdepth 1 -type f -name "escape_room_server" -exec cp {} release-artifacts/escape_room_server-aarch64 \;
|
||||
|
||||
- name: Upload Artifacts (Internal)
|
||||
uses: actions/upload-artifact@v4
|
||||
@@ -48,7 +48,7 @@ jobs:
|
||||
|
||||
- name: Create Gitea Release
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
# Change @v1 to @main
|
||||
# Switched to @main to fix the Gitea 'reference not found' error
|
||||
uses: https://gitea.com/actions/release-action@main
|
||||
with:
|
||||
files: |
|
||||
|
||||
Reference in New Issue
Block a user