-
Notifications
You must be signed in to change notification settings - Fork 0
feat(workflow): add GitHub Actions workflow for build and release process to automate deployment and versioning #1
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
Conversation
…cess to automate deployment and versioning
PR Analysis
PR Feedback
How to useInstructions
|
| echo "VERSION=$VERSION" >> $GITHUB_ENV | ||
| echo "version=$VERSION" >> $GITHUB_OUTPUT | ||
|
|
||
| - name: Create GitHub Release |
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.
Consider adding a step to notify stakeholders (e.g., via Slack or email) after a successful release. This can be done using a notification action or a custom script. [medium]
| - name: Create distribution builds | ||
| run: make dist | ||
|
|
||
| - name: Create release archives |
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.
Add a step to clean up any temporary files or artifacts that are not needed after the release is created. This can help in maintaining a clean workspace and reducing storage usage. [medium]
| echo "VERSION=$VERSION" >> $GITHUB_ENV | ||
| echo "version=$VERSION" >> $GITHUB_OUTPUT | ||
|
|
||
| - name: Create GitHub Release |
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.
Consider adding a condition to skip the release creation step if no changes are detected in the relevant files or directories. This can prevent unnecessary releases and save resources. [important]
| dist/*.tar.gz | ||
| dist/*.zip | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} No newline at end of file |
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.
Ensure that the GITHUB_TOKEN used has the necessary permissions for creating releases and uploading assets. Double-check the permissions settings in your GitHub repository. [important]
PR Type:
Enhancement
PR Description:
PR Main Files Walkthrough:
files:
.github/workflows/release.yml: A new GitHub Actions workflow file is added. It defines a job that runs on the latest Ubuntu environment and includes steps for: