diff --git a/.github/workflows/release-please.yaml b/.github/workflows/release-please.yaml new file mode 100644 index 0000000..6f5f697 --- /dev/null +++ b/.github/workflows/release-please.yaml @@ -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 }} diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..fd66d64 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,13 @@ +{ + "packages": { + ".": { + "package-name": "gitops", + "release-type": "python", + "exclude-paths": [ + "tests/", + "charts/", + "gitops_server/" + ] + } + } +}