add release doing
Some checks failed
Release Workflow / set-release-target (push) Successful in 1s
Release Workflow / build (metadata, amd64, linux) (push) Has been cancelled
Release Workflow / publish (push) Has been cancelled
Release Workflow / build (db, amd64, linux) (push) Has been cancelled

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2025-12-15 10:58:14 +01:00
commit b324184f4f
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632

View file

@ -31,13 +31,31 @@ jobs:
- name: Afficher la variable
run: echo "Release cible = ${{ steps.setvar.outputs.release_cible }}"
- name: Create prerelease
env:
TOKEN: ${{ secrets.RELEASE }}
TAG: ${{ needs.set-release-target.outputs.release_cible }}
run: |
curl -X POST \
-H "Authorization: token $TOKEN" \
-H "Content-Type: application/json" \
https://git.g3e.fr/api/v1/repos/${{ github.repository }}/releases \
-d @- <<EOF
{
"tag_name": "$TAG",
"name": "$TAG",
"body": "Prerelease automatique générée par la CI",
"draft": false,
"prerelease": true
}
EOF
build:
runs-on: docker
needs: set-release-target
strategy:
matrix:
goos: [linux, windows, darwin]
goarch: [amd64, arm64]
goos: [linux]
goarch: [amd64]
binaries: [db, metadata]
env:
RELEASE_CIBLE: ${{ needs.set-release-target.outputs.release_cible }}