test
Some checks failed
Rust CI / build-test (push) Failing after 2m5s

This commit is contained in:
2026-01-08 17:32:02 +01:00
parent 86c96bf9b2
commit 747fec0749

View File

@@ -30,8 +30,35 @@ jobs:
- name: Build (release)
run: cargo build --release
- name: Upload binary
- name: Upload artifact (binary)
uses: actions/upload-artifact@v3
with:
name: bhs-linux
path: target/release/black_hole_share
- name: Package for Gitea Packages
if: ${{ gitea.event_name == 'push' && gitea.ref_name == 'main' }}
run: |
set -euo pipefail
mkdir -p dist
cp target/release/black_hole_share dist/
tar -czf dist/black_hole_share-linux.tar.gz -C dist black_hole_share
- name: Publish to Gitea Packages (generic)
if: ${{ gitea.event_name == 'push' && gitea.ref_name == 'main' }}
env:
GITEA_TOKEN: ${{ secrets.gitea }}
run: |
set -euo pipefail
OWNER="${GITEA_REPOSITORY_OWNER:-icsboyx}"
SHA="${GITEA_SHA:-$(git rev-parse HEAD)}"
PKG_NAME="bhs"
PKG_VERSION="${SHA}"
FILE="dist/black_hole_share-linux.tar.gz"
curl -L --fail \
-H "Authorization: token ${GITEA_TOKEN}" \
--upload-file "${FILE}" \
"https://git.qosnet.it/api/packages/${OWNER}/generic/${PKG_NAME}/${PKG_VERSION}/black_hole_share-linux.tar.gz"