Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ jobs:
exit 1;
fi

- name: Ensure RELEASE_TOKEN secret is provided
run: |
if [ -z "${{ secrets.RELEASE_TOKEN }}" ]; then
echo "Secret RELEASE_TOKEN is not set. This workflow requires a personal access token (repo scope) in the repo secrets named RELEASE_TOKEN.";
echo "Create a PAT with 'repo' scope and add it at Settings → Secrets → Actions → New repository secret.";
exit 1;
fi

- name: Create GitHub Release (action)
uses: ncipollo/release-action@v1
with:
Expand All @@ -39,4 +47,4 @@ jobs:
draft: false
prerelease: false
commit: main
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.RELEASE_TOKEN }}