Skip to content

A self-hosted media server and file management system

Fix Auto Release Tag

aminnausin7ccc3a438bc9
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 4194f72e..7dcc37b2 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -3,9 +3,9 @@ name: Docker Image CI
on:
workflow_dispatch:
inputs:
- release:
- description: 'yes to release'
- required: false
+ tag:
+ description: 'Release Tag'
+ required: true
push:
branches: ['main']
@@ -44,8 +44,8 @@ jobs:
with:
allowUpdates: true
token: ${{ secrets.GITHUB_TOKEN }}
- tag: ${{ github.ref }}
- name: Release ${{ github.ref }}
+ tag: ${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.tag) || 'latest' }}
+ name: Release ${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.tag) || 'latest' }}
draft: false
prerelease: false
artifacts: mediaServerDockerLinux.zip,mediaServerDockerWindows.zip