-
Notifications
You must be signed in to change notification settings - Fork 100
[MINOR] release workflows corrected also added publish workflows #226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
2fcf054
release workflows
vedansh-5 686a126
updated readme
vedansh-5 f490cca
git auto commit changes
vedansh-5 5b62ddb
label change in workflow
vedansh-5 35750c8
readme note
vedansh-5 c08fc87
readme update for release
vedansh-5 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| name: Publish to Chrome Web Store | ||
|
|
||
| on: | ||
| release: | ||
| types: [published] # triggers when a release is published manually | ||
|
|
||
| jobs: | ||
| publish: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| ref: ${{ github.ref_name }} | ||
|
|
||
| - name: Create ZIP file | ||
| run: | | ||
| cd src | ||
| zip -r ../scrum-helper.zip . | ||
|
|
||
| - name: Upload to Chrome Web Store | ||
| uses: PlasmoHQ/chrome-extension@v3 | ||
| with: | ||
| client_id: ${{ secrets.CHROME_CLIENT_ID }} | ||
| client_secret: ${{ secrets.CHROME_CLIENT_SECRET }} | ||
| refresh_token: ${{ secrets.CHROME_REFRESH_TOKEN }} | ||
| extension_id: ${{ secrets.CHROME_EXTENSION_ID }} | ||
| zip: scrum-helper.zip |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -6,13 +6,8 @@ on: | |
| branches: | ||
| - master | ||
|
|
||
| # pull_request event is required only for autolabeler | ||
| pull_request: | ||
| # Only following types are handled by the action, but one can default to all as well | ||
| types: [opened, reopened, synchronize] | ||
| # pull_request_target event is required for autolabeler to support PRs from forks | ||
| # pull_request_target: | ||
| # types: [opened, reopened, synchronize] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
@@ -23,20 +18,51 @@ jobs: | |
| # write permission is required to create a github release | ||
| contents: write | ||
| # write permission is required for autolabeler | ||
| # otherwise, read permission is required at least | ||
| pull-requests: write | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| # (Optional) GitHub Enterprise requires GHE_HOST variable set | ||
| #- name: Set GHE_HOST | ||
| # run: | | ||
| # echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV | ||
|
|
||
| # Drafts your next Release notes as Pull Requests are merged into "master" | ||
| - uses: release-drafter/[email protected] | ||
| # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml | ||
| # with: | ||
| # config-name: my-config.yml | ||
| # disable-autolabeler: true | ||
| - name: Draft Release | ||
| id: release_drafter | ||
| uses: release-drafter/release-drafter@v6 | ||
| with: | ||
| config-name: release-drafter.yml | ||
| publish: true | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
|
|
||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '20' | ||
|
|
||
| - name: Update Changelog | ||
| run: | | ||
| VERSION="${{ steps.release_drafter.outputs.tag_name }}" | ||
| BODY="${{ steps.release_drafter.outputs.body }}" | ||
|
|
||
| # Create a new changelog entry file | ||
| echo -e "## ${VERSION} ($(date +'%Y-%m-%d'))\n\n${BODY}\n\n" > new_changelog_entry.md | ||
|
|
||
| # Prepend the new entry to the existing CHANGELOG.md | ||
| if [ -f CHANGELOG.md ]; then | ||
| cat CHANGELOG.md >> new_changelog_entry.md | ||
| fi | ||
| mv new_changelog_entry.md CHANGELOG.md | ||
|
|
||
| # Commits the updated CHANGELOG.md and creates a tag for the new version | ||
| - name: Commit and Push Changelog | ||
| uses: stefanzweifel/git-auto-commit-action@v5 | ||
| with: | ||
| commit_message: 'docs: Update CHANGELOG.md for ${{ steps.release_drafter.outputs.tag_name }}' | ||
| file_pattern: 'CHANGELOG.md' | ||
| tagging_message: ${{ steps.release_drafter.outputs.tag_name }} | ||
|
|
||
|
|
||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue (bug_risk): Automatically committing and tagging from within the workflow may create tags that conflict with those created by the release-drafter action.
Coordinate tag creation between this step and the release-drafter action to avoid duplicate tags or push errors. Consider adding logic to skip tag creation if the tag already exists.