From f571087ad699edff91c7543378d2b54d17a72f61 Mon Sep 17 00:00:00 2001 From: Casey Waldren Date: Thu, 25 Apr 2024 12:13:19 -0700 Subject: [PATCH] ci: add release-please support (#22) --- .github/workflows/release-please.yml | 17 +++++++++++++++ .release-please-manifest.json | 8 +++++++ release-please-config.json | 31 ++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 .github/workflows/release-please.yml create mode 100644 .release-please-manifest.json create mode 100644 release-please-config.json diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000..52c5a6b --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,17 @@ +# This isn't meant for usage in consuming repos. It's for releasing this repo's actions/workflows itself. + +name: Release Please +on: + workflow_dispatch: + push: + branches: + - main + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + target-branch: ${{ github.ref_name }} diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..f6f9630 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,8 @@ +{ + "actions/contract-tests": "1.0.1", + "actions/publish-pages": "1.0.2", + "actions/release-secrets": "1.1.0", + "actions/sign-dlls": "1.0.0", + "actions/verify-hello-app": "1.0.1", + ".github/workflows": "1.0.0" +} diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..50afecb --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,31 @@ +{ + "separate-pull-requests": true, + "include-component-in-tag": true, + "include-v-in-tag": true, + "packages": { + "actions/contract-tests": { + "release-type": "simple", + "package-name": "contract-tests" + }, + "actions/publish-pages": { + "release-type": "simple", + "package-name": "publish-pages" + }, + "actions/release-secrets": { + "release-type": "simple", + "package-name": "release-secrets" + }, + "actions/sign-dlls": { + "release-type": "simple", + "package-name": "sign-dlls" + }, + "actions/verify-hello-app": { + "release-type": "simple", + "package-name": "verify-hello-app" + }, + ".github/workflows": { + "release-type": "simple", + "package-name": "workflows" + } + } +}