Skip to content

Commit eb9ac4b

Browse files
committed
Upload release deb on manual run too
1 parent c02710b commit eb9ac4b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
release:
44
types:
55
- published
6+
workflow_dispatch:
67

78
jobs:
89
Build:
@@ -25,6 +26,7 @@ jobs:
2526
run: |
2627
bin/metainfo_version.sh
2728
- name: Check release tag matches version
29+
if: github.event_name == 'release'
2830
run: test "refs/tags/v${{ steps.version.outputs.version }}" = ${{ github.ref }}
2931
- name: Install required build environment
3032
uses: ./.github/actions/archlinux_build_environment_setup
@@ -43,7 +45,16 @@ jobs:
4345
cd ${{ runner.workspace }}/build
4446
cpack -G DEB -DFCITX_INSTALL_USE_FCITX_SYS_PATHS=On
4547
- name: Attatch artifact to Release
48+
if: github.event_name == 'release'
4649
uses: softprops/action-gh-release@v1
4750
with:
4851
files: |
49-
${{ runner.workspace }}/fcitx5-cskk/_packages/fcitx5-cskk_${{ steps.version.outputs.version }}_amd64.deb
52+
${{ runner.workspace }}/fcitx5-cskk/_packages/fcitx5-cskk_${{ steps.version.outputs.version }}_amd64.deb
53+
- name: Upload DEB artifact
54+
if: github.event_name == 'workflow_dispatch'
55+
uses: actions/upload-artifact@v4
56+
with:
57+
name: fcitx5-cskk-deb
58+
path: ${{ runner.workspace }}/fcitx5-cskk/_packages/fcitx5-cskk_${{ steps.version.outputs.version }}_amd64.deb
59+
if-no-files-found: error
60+
retention-days: 30

0 commit comments

Comments
 (0)