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