on: workflow_call: inputs: tag: required: true type: string jobs: release: runs-on: docker env: TOKEN: ${{ secrets.RELEASE }} TAG: ${{ inputs.tag }} steps: - name: Download all build artifacts uses: actions/download-artifact@v3 with: path: dist/ - name: Publier tous les binaires run: ls -lR dist/ - name: Install jq run: | apt-get update apt-get install -y jq - name: Create prerelease run: | curl -X POST \ -H "Authorization: token $TOKEN" \ -H "Content-Type: application/json" \ "https://git.g3e.fr/api/v1/repos/${{ github.repository }}/releases" \ -d @- <