Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/post-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Post Release

on:
workflow_run:
workflows: ["Publish Release"]
types:
- completed

jobs:
bump-dev-version:
if: github.event.workflow_run.conclusion == 'success'
uses: AlchemyCMS/.github/.github/workflows/post-release.yml@main
with:
version_file_path: lib/alchemy/version.rb
target_branch: ${{ github.event.workflow_run.head_branch }}
secrets:
app_id: ${{ vars.ALCHEMY_BOT_APP_ID }}
app_private_key: ${{ secrets.ALCHEMY_BOT_APP_PRIVATE_KEY }}
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
mastodon_access_token: ${{ secrets.MASTODON_ACCESS_TOKEN }}
mastodon_instance: ${{ secrets.MASTODON_INSTANCE }}
bluesky_identifier: ${{ secrets.BLUESKY_IDENTIFIER }}
bluesky_password: ${{ secrets.BLUESKY_PASSWORD }}
25 changes: 25 additions & 0 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Prepare Release

on:
workflow_dispatch:
inputs:
bump:
description: 'Version bump type. Choose "release" for finalizing a pre-release, or patch/minor/major to bump version.'
required: true
type: choice
default: 'patch'
options:
- release
- patch
- minor
- major

jobs:
prepare:
uses: AlchemyCMS/.github/.github/workflows/prepare-release.yml@main
with:
version_file_path: lib/alchemy/version.rb
bump: ${{ inputs.bump }}
secrets:
app_id: ${{ vars.ALCHEMY_BOT_APP_ID }}
app_private_key: ${{ secrets.ALCHEMY_BOT_APP_PRIVATE_KEY }}
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
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
secrets:
app_id: ${{ vars.ALCHEMY_BOT_APP_ID }}
app_private_key: ${{ secrets.ALCHEMY_BOT_APP_PRIVATE_KEY }}
Loading