-
-
Notifications
You must be signed in to change notification settings - Fork 321
21 lines (19 loc) · 690 Bytes
/
release.yml
File metadata and controls
21 lines (19 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
name: Publish Release
on:
workflow_dispatch:
pull_request:
types: [closed]
branches:
- main
- '*-stable'
jobs:
publish:
if: github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/v'))
uses: AlchemyCMS/.github/.github/workflows/release.yml@main
with:
version_file_path: lib/alchemy/version.rb
target_branch: ${{ github.event.pull_request.base.ref || github.ref_name }}
secrets:
app_id: ${{ vars.ALCHEMY_BOT_APP_ID }}
app_private_key: ${{ secrets.ALCHEMY_BOT_APP_PRIVATE_KEY }}
rubygems_api_key: ${{ secrets.RUBYGEMS_API_KEY }}