mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-17 19:52:38 +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:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- v[0-9]+.[0-9]+.*
|
- v[0-9]+.[0-9]+.*
|
||||||
|
- install-action-manifest-schema-[0-9]+.[0-9]+.*
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
@@ -14,11 +15,12 @@ defaults:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
create-release:
|
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
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
|
environment: release
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write # for taiki-e/create-gh-release-action
|
||||||
steps:
|
steps:
|
||||||
- uses: taiki-e/checkout-action@v1
|
- uses: taiki-e/checkout-action@v1
|
||||||
- uses: taiki-e/create-gh-release-action@v1
|
- uses: taiki-e/create-gh-release-action@v1
|
||||||
@@ -27,3 +29,16 @@ jobs:
|
|||||||
title: $version
|
title: $version
|
||||||
branch: 'main|v[0-9]+'
|
branch: 'main|v[0-9]+'
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
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