From 5e960133bb6e218c775705d4f9f7a3d19c55607b Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Tue, 17 Aug 2021 16:47:40 +0100 Subject: [PATCH] test upload to release --- .github/workflows/release.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8eb4c941..f30e8062 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,5 +1,11 @@ name: Make GitHub Release on Tag on: + workflow_dispatch: + inputs: + debug_enabled: + description: 'Run debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' + required: false + default: false push: tags: - '2.[0-9][0-9][0-9][0-9][0-9][0-9]' @@ -13,9 +19,19 @@ jobs: id: get_tag run: echo ::set-output name=TAGVALUE::${GITHUB_REF#refs/tags/} - name: Release + id: create_release uses: softprops/action-gh-release@v1 with: name: Netdisco ${{ steps.get_tag.outputs.TAGVALUE }} + - name: get upload url 2 + run: echo ${{ steps.create_release.outputs.upload_url }} + - name: get upload url + run: echo ${{ steps.create_release.outputs.upload_url }} > uploadurl.txt + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 + if: always() && github.event.inputs.debug_enabled && (github.event_name == 'workflow_dispatch') + with: + sudo: true #jobs: # build: # runs-on: ubuntu-latest