Skip to content

Commit

Permalink
ci: remove git plugin from release process
Browse files Browse the repository at this point in the history
Removed the `@semantic-release/git` plugin to avoid making automated commits during the release
process. This change simplifies the release flow by only creating a tag without pushing commits to
the repository, following the recommendation from semantic release. This also removes the need for
handling branch protection rules and bypassing pre-commit hooks during automated commits.
  • Loading branch information
jboix committed Oct 15, 2024
1 parent d51d7fe commit 7ce4e5a
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 57 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ jobs:
run: |
npm install -g @semantic-release/[email protected] \
@semantic-release/[email protected] \
@semantic-release/[email protected] \
@semantic-release/[email protected] \
@semantic-release/[email protected] \
@semantic-release/[email protected] \
[email protected] \
[email protected]
Expand Down
23 changes: 9 additions & 14 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -77,32 +77,27 @@
}
}
],
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "./gradlew release -Pversion=${nextRelease.version}",
"prepareCmd": "./gradlew clean release -Pversion=${nextRelease.version}",
"successCmd": "echo ${nextRelease.version} > VERSION"
}
],
[
"@semantic-release/git",
{
"assets": ["build.gradle.kts", "gradle.properties", "CHANGELOG.md"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
[
"@semantic-release/github",
{
"assets": [
{
"path": "build/libs/pillarbox-monitoring-transfer.jar"
},
{
"path": "LICENSE",
"label": "License"
},
{
"path": "README.md",
"label": "Readme"
}
]
}
Expand Down
32 changes: 0 additions & 32 deletions CHANGELOG.md

This file was deleted.

16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ Here’s a more concise description of the GitHub Actions setup without listing

### Continuous Integration

This project automates its development workflow using GitHub Actions across three main workflows:
quality checks, releases, and deployments.
This project automates its development workflow using GitHub Actions across two main workflows:
quality checks and releases.

1. **Quality Check for Pull Requests**
Triggered on every pull request to the `main` branch, this workflow ensures the code passes
Expand All @@ -114,12 +114,8 @@ quality checks, releases, and deployments.

2. **Release Workflow**
When changes are pushed to the `main` branch, this workflow handles versioning and releases using
`semantic-release`. It automatically bumps the version, generates release notes, and pushes
updates to the repository.

3. **Deployment Workflow**
This workflow is triggered whenever a tag is created. It builds the Docker image for the service
and pushes the image to an Amazon ECR repository.
`semantic-release`. It automatically bumps the version, generates release notes, creates a tag,
and publishes a Docker image to an Amazon ECR repository.

## Contributing

Expand Down Expand Up @@ -162,7 +158,11 @@ Refer to our [Contribution Guide](docs/CONTRIBUTING.md) for more detailed inform
This project is licensed under the [MIT License](LICENSE).

[main-entry-point]: src/main/kotlin/ch/srgssr/pillarbox/monitoring/PillarboxDataTransferApplication.kt

[health-indicator]: src/main/kotlin/ch/srgssr/pillarbox/monitoring/health/BenchmarkHealthIndicator.kt

[lock-manager]: src/main/kotlin/ch/srgssr/pillarbox/monitoring/concurrent/LockManager.kt

[setup-service]: src/main/kotlin/ch/srgssr/pillarbox/monitoring/event/SetupService.kt

[sse-client]: src/main/kotlin/ch/srgssr/pillarbox/monitoring/event/SseClient.kt
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#Thu Oct 10 12:15:07 UTC 2024
group=ch.srgssr.pillarbox
version=2.0.1
version=dev

0 comments on commit 7ce4e5a

Please sign in to comment.