From 0536966d54b8b7fa76f5fbf4ce1aa48fe5284e95 Mon Sep 17 00:00:00 2001 From: Mikhail Smirnov <58223117+mismirnov@users.noreply.github.com> Date: Fri, 13 Sep 2024 18:19:14 +0300 Subject: [PATCH] Workflow: releases (#3) --- .github/workflows/release.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 99cbee2..e4dbabf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,8 @@ on: types: [tag_created] jobs: - triggered_job: + generate_api_job: + name: Generate API & GitHub push runs-on: ubuntu-latest permissions: @@ -42,4 +43,20 @@ jobs: run: | git add . git commit -m "${{ github.event.client_payload.tag }}" - git push https://x-access-token:${{ secrets.PAT }}@github.com/${{ github.repository }}.git \ No newline at end of file + git push https://x-access-token:${{ secrets.PAT }}@github.com/${{ github.repository }}.git + + release: + name: Release + needs: generate_api_job + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Publish GitHub Release + uses: marvinpinto/action-automatic-releases@latest + with: + repo_token: ${{ secrets.PAT }} + prerelease: false + automatic_release_tag: ${{ github.event.client_payload.tag }} \ No newline at end of file