From 9f2c7e4510c0f93c84e4bccffed67c572d04e46b Mon Sep 17 00:00:00 2001 From: DarkFighterLuke Date: Wed, 8 May 2024 23:24:07 +0200 Subject: [PATCH] Run workflow on tag creation and create release automatically --- .github/workflows/build.yaml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index c861eba..3fc91fc 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,9 +1,9 @@ -name: Stable Release +name: TubeArchivistMetadata Release on: - release: - types: - - released + push: + tags: + - v* branches: master jobs: @@ -54,14 +54,12 @@ jobs: dotnet-target: net6.0 version: ${VERSION} - - name: Upload Release - uses: svenstaro/upload-release-action@v2 - id: upload + - name: Create release + uses: ncipollo/release-action@v1 with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: ${{ steps.jprm.outputs.artifact }} - tag: ${{ github.ref }} - asset_name: TubeArchivistMetadata-${{ env.VERSION }}.zip + token: ${{ secrets.GITHUB_TOKEN }} + artifacts: ${{ steps.jprm.outputs.artifact }} + makeLatest: latest body: ${{ env.RELEASE_MESSAGE }} - name: Update manifest.json