Skip to content

Commit c1cb2e6

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

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/release.yml

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

78
jobs:
89
Build:
910
runs-on: ubuntu-24.04
11+
container: archlinux:latest
1012
# strategy:
1113
# matrix:
1214
# cskk_ver: [0.8.1]
@@ -25,6 +27,7 @@ jobs:
2527
run: |
2628
bin/metainfo_version.sh
2729
- name: Check release tag matches version
30+
if: github.event_name == 'release'
2831
run: test "refs/tags/v${{ steps.version.outputs.version }}" = ${{ github.ref }}
2932
- name: Install required build environment
3033
uses: ./.github/actions/archlinux_build_environment_setup
@@ -43,7 +46,16 @@ jobs:
4346
cd ${{ runner.workspace }}/build
4447
cpack -G DEB -DFCITX_INSTALL_USE_FCITX_SYS_PATHS=On
4548
- name: Attatch artifact to Release
49+
if: github.event_name == 'release'
4650
uses: softprops/action-gh-release@v1
4751
with:
4852
files: |
49-
${{ runner.workspace }}/fcitx5-cskk/_packages/fcitx5-cskk_${{ steps.version.outputs.version }}_amd64.deb
53+
${{ runner.workspace }}/fcitx5-cskk/_packages/fcitx5-cskk_${{ steps.version.outputs.version }}_amd64.deb
54+
- name: Upload DEB artifact
55+
if: github.event_name == 'workflow_dispatch'
56+
uses: actions/upload-artifact@v4
57+
with:
58+
name: fcitx5-cskk-deb
59+
path: ${{ runner.workspace }}/fcitx5-cskk/_packages/fcitx5-cskk_${{ steps.version.outputs.version }}_amd64.deb
60+
if-no-files-found: error
61+
retention-days: 30

0 commit comments

Comments
 (0)