From d6d56fd78c82c49ffd639271ff22eed764b0eb42 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Tue, 17 Aug 2021 15:33:48 +0100 Subject: [PATCH] try other release script --- .github/workflows/release.yml | 38 +++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 54580cee..7c1115a5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,20 +4,28 @@ on: tags: - '2.[0-9][0-9][0-9][0-9][0-9][0-9]' jobs: - build: + release_netdisco: runs-on: ubuntu-latest steps: - - uses: actions/checkout@master - - name: Get the Tag - id: get_tag - run: echo ::set-output name=TAGVALUE::${GITHUB_REF#refs/tags/} - - name: Netdisco Release - env: - GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} - run: | - curl -sL -X POST -H "Content-Type: application/json" \ - -u "$GITHUB_TOKEN" \ - --data "{\"tag_name\": \"${{ steps.get_tag.outputs.TAGVALUE }}\", \ - \"target_commitish\": \"master\", \ - \"name\": \"Netdisco ${{ steps.get_tag.outputs.TAGVALUE }}\"}" \ - https://api.github.com/repos/netdisco/netdisco/releases + - name: Checkout + uses: actions/checkout@v2 + - name: Release + uses: softprops/action-gh-release@v1 +#jobs: +# build: +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@master +# - name: Get the Tag +# id: get_tag +# run: echo ::set-output name=TAGVALUE::${GITHUB_REF#refs/tags/} +# - name: Netdisco Release +# env: +# GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} +# run: | +# curl -sL -X POST -H "Content-Type: application/json" \ +# -u "$GITHUB_TOKEN" \ +# --data "{\"tag_name\": \"${{ steps.get_tag.outputs.TAGVALUE }}\", \ +# \"target_commitish\": \"master\", \ +# \"name\": \"Netdisco ${{ steps.get_tag.outputs.TAGVALUE }}\"}" \ +# https://api.github.com/repos/netdisco/netdisco/releases