-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR modifies our Semantic Release workflow to ensure it's only triggered manually: 1. Removed automatic trigger on push to main branch 2. Retained only the `workflow_dispatch` trigger 3. Simplified job structure while maintaining all necessary steps and permissions These changes provide more control over when releases are created, allowing us to: - Prevent unintended automatic releases - Manually initiate the release process when desired - Maintain full functionality of the Semantic Release process
- Loading branch information
Showing
2 changed files
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
name: Semantic Release | ||
name: Create New Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
workflow_dispatch: # This ensures the workflow is only triggered manually | ||
|
||
jobs: | ||
release: | ||
name: Create Release | ||
runs-on: ubuntu-latest | ||
concurrency: release | ||
permissions: | ||
id-token: write | ||
contents: write | ||
issues: write | ||
pull-requests: write | ||
actions: write | ||
|
||
steps: | ||
- name: Checkout code | ||
|
@@ -21,7 +20,6 @@ jobs: | |
fetch-depth: 0 | ||
|
||
- name: Python Semantic Release | ||
id: release | ||
uses: python-semantic-release/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters