mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-08 18:05:42 +08:00
ci: Setup release workflow for install-action-manifest-schema
This commit is contained in:
19
.github/workflows/release.yml
vendored
19
.github/workflows/release.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user