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