Skip to content

Commit

Permalink
Workflow: releases (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
mismirnov authored Sep 13, 2024
1 parent aaf3d73 commit 0536966
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
types: [tag_created]

jobs:
triggered_job:
generate_api_job:
name: Generate API & GitHub push
runs-on: ubuntu-latest

permissions:
Expand Down Expand Up @@ -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
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 }}

0 comments on commit 0536966

Please sign in to comment.