d
Some checks failed
build-service / build-and-release (push) Failing after 1m8s

This commit is contained in:
2026-05-14 20:14:38 -05:00
parent b96f00c847
commit 5615622acc

View File

@@ -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: |