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
8 changes: 3 additions & 5 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Build Docker Image

on:
push:
branches: [ "main" ]
tags: [ 'v*.*.*' ]
pull_request:
branches: [ "main" ]
release:
# Run this workflow only when a release is published
types: [published]

env:
REGISTRY: ghcr.io
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/build-electron.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Build Standalone App (Electron)

on:
push:
branches: [ "main" ]
tags: [ 'v*.*.*' ]
pull_request:
branches: [ "main" ]
release:
# Run this workflow only when a release is published
types: [published]

jobs:
build:
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/build-pyinstaller.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Build Portable Executable (PyInstaller)

on:
push:
branches: [ "main" ]
tags: [ 'v*.*.*' ]
pull_request:
branches: [ "main" ]
release:
# Run this workflow only when a release is published
types: [published]

jobs:
build:
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Create Release (manual)

on:
workflow_dispatch:
branches: [ "main" ]
inputs:
version:
description: 'New release version (tag), e.g. v1.2.3'
required: true
type: string
body:
description: 'Release notes / body'
required: false
type: string

permissions:
contents: write

jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Ensure workflow is running on `main`
run: |
if [ "${GITHUB_REF#refs/heads/}" != "main" ]; then
echo "This workflow can only be run on the main branch.";
exit 1;
fi

- name: Create GitHub Release
uses: actions/create-release@v1
with:
tag_name: ${{ github.event.inputs.version || github.event.inputs.version }}
release_name: ${{ github.event.inputs.version || github.event.inputs.version }}
body: ${{ github.event.inputs.body || '' }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}