File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 33 release :
44 types :
55 - published
6+ workflow_dispatch :
67
78jobs :
89 Build :
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
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
You can’t perform that action at this time.
0 commit comments