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
|
- name: Afficher la variable
|
||||||
run: echo "Release cible = ${{ steps.setvar.outputs.release_cible }}"
|
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:
|
build:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
needs: set-release-target
|
needs: set-release-target
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
goos: [linux, windows, darwin]
|
goos: [linux]
|
||||||
goarch: [amd64, arm64]
|
goarch: [amd64]
|
||||||
binaries: [db, metadata]
|
binaries: [db, metadata]
|
||||||
env:
|
env:
|
||||||
RELEASE_CIBLE: ${{ needs.set-release-target.outputs.release_cible }}
|
RELEASE_CIBLE: ${{ needs.set-release-target.outputs.release_cible }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue