File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-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 :
910 runs-on : ubuntu-24.04
11+ container : archlinux:latest
1012# strategy:
1113# matrix:
1214# cskk_ver: [0.8.1]
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
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
You can’t perform that action at this time.
0 commit comments