Skip to content

Commit

Permalink
Adjust release workflow for stable versions
Browse files Browse the repository at this point in the history
  • Loading branch information
peb-adr committed Aug 23, 2023
1 parent f58d71b commit e1badda
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
name: GitHub Release
name: GitHub Release (reusable)
on:
push:
branches: [main]
workflow_call:
inputs:
tag:
type: string
default: dev
title:
type: string
default: Development Build
prerelease:
type: boolean
default: true

jobs:
release:
name: Create GitHub Release and upload binary
Expand All @@ -22,8 +32,8 @@ jobs:
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build"
automatic_release_tag: "${{ inputs.tag }}"
prerelease: "${{ inputs.prerelease }}"
title: "${{ inputs.title }}"
files: |
openslides
24 changes: 24 additions & 0 deletions .github/workflows/release-stable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: GitHub Release (stable)
on:
registry_package:
types: [updated]

# build-manage:
# name: "Build openslides binary (tag: 4.x.x)"
# if: startsWith(github.ref_name, 'stable/4')
# uses: peb-adr/openslides-manage-service/.github/workflows/release.yml@main


jobs:
print-stuff:
run: |
echo "${{ to_json(github.event) }}" | jq .
release-stable:
name: Create GitHub Release and upload binary
if: github.event.registry_package.package_version.container_metadata.tag.name != ''
runs-on: ubuntu-latest
uses: .github/workflows/release-create.yml@main
with:
tag: latest
title: Stable Build
prerelease: false

0 comments on commit e1badda

Please sign in to comment.