Skip to content

Commit 374b9cc

Browse files
authored
build: Release
1 parent 3541b4a commit 374b9cc

1 file changed

Lines changed: 19 additions & 27 deletions

File tree

.github/workflows/build.yml

Lines changed: 19 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
name: Check
2121
uses: ./.github/workflows/check.yml
2222

23-
integration-test:
24-
name: Test
23+
release:
24+
name: Release
2525
needs: shellcheck
2626
runs-on: ubuntu-latest
2727
permissions:
@@ -53,36 +53,28 @@ jobs:
5353
name: Create a release
5454
uses: action-pack/github-release@master
5555
env:
56-
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
56+
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
5757
with:
5858
tag: "v${{ vars.MAJOR }}.${{ vars.MINOR }}"
5959
title: "v${{ vars.MAJOR }}.${{ vars.MINOR }}"
6060
body: |
6161
${{ steps.changelog.outputs.changes }}
6262
6363
**Full Changelog**: https://github.com/${{ github.repository }}/compare//${{ env.previousTag }}...v${{ vars.MAJOR }}.${{ vars.MINOR }}
64+
-
65+
name: Update major release
66+
uses: action-pack/github-release@master
67+
env:
68+
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
69+
with:
70+
tag: "v${{ vars.MAJOR }}"
71+
title: "v${{ vars.MAJOR }}"
72+
body: |
73+
${{ steps.changelog.outputs.changes }}
6474
65-
release:
66-
name: Release
67-
runs-on: ubuntu-latest
68-
needs: integration-test
69-
permissions:
70-
contents: write
71-
steps:
72-
- uses: actions/checkout@v4
73-
with:
74-
fetch-depth: 0
75-
token: ${{ secrets.RELEASE_TOKEN }}
76-
-
77-
name: Update major release
78-
uses: action-pack/github-release@master
79-
env:
80-
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
81-
with:
82-
tag: "v${{ vars.MAJOR }}"
83-
title: "v${{ vars.MAJOR }}"
84-
-
85-
name: Increment version variable
86-
uses: action-pack/bump@v2
87-
with:
88-
token: ${{ secrets.RELEASE_TOKEN }}
75+
**Full Changelog**: https://github.com/${{ github.repository }}/compare//${{ env.previousTag }}...v${{ vars.MAJOR }}.${{ vars.MINOR }}
76+
-
77+
name: Increment version variable
78+
uses: action-pack/bump@v2
79+
with:
80+
token: ${{ secrets.REPO_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)