Skip to content

Commit 0536966

Browse files
authored
Workflow: releases (#3)
1 parent aaf3d73 commit 0536966

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.github/workflows/release.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ on:
55
types: [tag_created]
66

77
jobs:
8-
triggered_job:
8+
generate_api_job:
9+
name: Generate API & GitHub push
910
runs-on: ubuntu-latest
1011

1112
permissions:
@@ -42,4 +43,20 @@ jobs:
4243
run: |
4344
git add .
4445
git commit -m "${{ github.event.client_payload.tag }}"
45-
git push https://x-access-token:${{ secrets.PAT }}@github.com/${{ github.repository }}.git
46+
git push https://x-access-token:${{ secrets.PAT }}@github.com/${{ github.repository }}.git
47+
48+
release:
49+
name: Release
50+
needs: generate_api_job
51+
runs-on: ubuntu-latest
52+
53+
steps:
54+
- name: Checkout repository
55+
uses: actions/checkout@v4
56+
57+
- name: Publish GitHub Release
58+
uses: marvinpinto/action-automatic-releases@latest
59+
with:
60+
repo_token: ${{ secrets.PAT }}
61+
prerelease: false
62+
automatic_release_tag: ${{ github.event.client_payload.tag }}

0 commit comments

Comments
 (0)