From 26176d8d69a63a253d0afeccbbc05d9c8251c6e2 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sat, 20 Sep 2025 13:02:47 +0900 Subject: [PATCH] ci: Setup release workflow for install-action-manifest-schema --- .github/workflows/release.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f074b82e..6ef513b6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,6 +7,7 @@ on: push: tags: - v[0-9]+.[0-9]+.* + - install-action-manifest-schema-[0-9]+.[0-9]+.* defaults: run: @@ -14,11 +15,12 @@ defaults: jobs: create-release: - if: github.repository_owner == 'taiki-e' + if: github.repository_owner == 'taiki-e' && !startsWith(github.ref_name, 'install-action-manifest-schema-') runs-on: ubuntu-latest timeout-minutes: 60 + environment: release permissions: - contents: write + contents: write # for taiki-e/create-gh-release-action steps: - uses: taiki-e/checkout-action@v1 - uses: taiki-e/create-gh-release-action@v1 @@ -27,3 +29,16 @@ jobs: title: $version branch: 'main|v[0-9]+' token: ${{ secrets.GITHUB_TOKEN }} + + create-release-manifest-schema: + if: github.repository_owner == 'taiki-e' && startsWith(github.ref_name, 'install-action-manifest-schema-') + uses: taiki-e/github-actions/.github/workflows/create-release.yml@main + with: + crates: tools/manifest-schema + changelog: tools/manifest-schema/CHANGELOG.md + title: $prefix $version + prefix: install-action-manifest-schema + permissions: + contents: write # for taiki-e/create-gh-release-action + id-token: write # for rust-lang/crates-io-auth-action + secrets: inherit