Skip to content

Commit

Permalink
MARP-620 Add publish-release workflow (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndkhanh-axonivy authored Aug 26, 2024
1 parent 25f7686 commit 28c8859
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Publish Release

on:
push:
tags:
- "v*.*.*"

permissions:
contents: write
pull-requests: read

jobs:
build:
uses: axonivy-market/github-workflows/.github/workflows/publish-release.yml@v4
# The 'publish_release' input parameter is used to control whether the release should be published automatically.
# Uncomment and set to 'false' if you want to prevent the release from being published immediately.
# with:
# publish_release: false
16 changes: 3 additions & 13 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,16 @@
name: Release Drafter

on:
push:
branches:
- master
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch:
inputs:
version:
description: 'Release version'
required: true
prerelease:
description: 'Is this a prerelease?'
required: false
default: false
type: boolean

permissions:
contents: write
pull-requests: write

jobs:
build:
uses: axonivy-market/github-workflows/.github/workflows/release-drafter.yml@v4
with:
version: ${{ github.event.inputs.version }}
prerelease: ${{ github.event.inputs.prerelease }}

0 comments on commit 28c8859

Please sign in to comment.