Skip to content
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

Use release-please #86

Merged
Merged
Show file tree
Hide file tree
Changes from 3 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
31 changes: 31 additions & 0 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release Please
on:
push:
branches:
- develop

permissions:
actions: read # Read the metrics
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance / AWS

env:
MISE_PYTHON_COMPILE: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
release_gitops_cli:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release
# Configured via: release-please-config.json and will update the manifest: .release-please-manifest.json
with: {}
outputs:
# Root level release_created
release_created: ${{ steps.release.outputs.release_created }}
# Root level tag_name
tag_name: ${{ steps.release.outputs.tag_name }}
sha: ${{ steps.release.outputs.sha }}
5 changes: 5 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"gitops": "0.12.1",
"gitops_server": "0.12.1",
"charts/gitops": "0.12.1"
}
16 changes: 16 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"packages": {
"gitops": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one will actually need to be "." as pyproject.toml is located at the top level.

We'll need some excludes to gitops server now that I think about it.

I also think we might be able to skip gitops_server. We can have gitops_server building on all pushes to main.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the round trip; just given it more thought :(

"package-name": "gitops",
"release-type": "python"
},
"gitops_server": {
"package-name": "gitops-server",
"release-type": "python"
},
"charts/gitops":{
"package-name": "gitops-chart",
"release-type": "helm"
}
}
}
Loading