Skip to content

Commit

Permalink
feat: Use release-please
Browse files Browse the repository at this point in the history
  • Loading branch information
mdesouky committed Nov 14, 2024
1 parent 65f36fe commit 0324a14
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
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:
- main

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 }}
13 changes: 13 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"packages": {
".": {
"package-name": "gitops",
"release-type": "python",
"exclude-paths": [
"tests/",
"charts/",
"gitops_server/"
]
}
}
}

0 comments on commit 0324a14

Please sign in to comment.