add release doing
Some checks failed
Some checks failed
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
f699a34a65
commit
b324184f4f
1 changed files with 20 additions and 2 deletions
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue