File tree Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 2424 SIGN_KEY_PASS : ${{ secrets.SIGN_KEY_PASS }}
2525 SIGN_STORE_PASS : ${{ secrets.SIGN_STORE_PASS }}
2626 run : |
27- sed -i -E 's/#define ONS_YURI_VERSION "(.+?)"/#define ONS_YURI_VERSION "${{ github.ref_name }}"/g' src/onsyuri/version.h
27+ if [ -z "$(echo ${{ github.ref_name }} | grep merge)" ]; then
28+ sed -i -E 's/#define ONS_YURI_VERSION "(.+?)"/#define ONS_YURI_VERSION "${{ github.ref_name }}"/g' src/onsyuri/version.h
29+ fi
2830 cd script
2931 bash ./cross_android.sh
3032 cd -
Original file line number Diff line number Diff line change 5151
5252 - name : build onsyuri_${{ matrix.arch.suffix }}_linux
5353 run : |
54- sed -i -E 's/#define ONS_YURI_VERSION "(.+?)"/#define ONS_YURI_VERSION "${{ github.ref_name }}"/g' src/onsyuri/version.h
54+ if [ -z "$(echo ${{ github.ref_name }} | grep merge)" ]; then
55+ sed -i -E 's/#define ONS_YURI_VERSION "(.+?)"/#define ONS_YURI_VERSION "${{ github.ref_name }}"/g' src/onsyuri/version.h
56+ fi
5557 cd script
5658 SKIP_PORTS=yes bash cross_linux${{ matrix.arch.suffix2 }}.sh
5759
Original file line number Diff line number Diff line change 4646
4747 - name : build onsyuri_web
4848 run : |
49- sed -i -E 's/#define ONS_YURI_VERSION "(.+?)"/#define ONS_YURI_VERSION "${{ github.ref_name }}"/g' src/onsyuri/version.h
49+ if [ -z "$(echo ${{ github.ref_name }} | grep merge)" ]; then
50+ sed -i -E 's/#define ONS_YURI_VERSION "(.+?)"/#define ONS_YURI_VERSION "${{ github.ref_name }}"/g' src/onsyuri/version.h
51+ fi
5052 cd script
5153 EMCSDK=${{ env.EMCSDK }} bash ./cross_web.sh
5254
Original file line number Diff line number Diff line change 4949
5050 - name : build onsyuri_${{ matrix.arch.suffix }}_win.exe
5151 run : |
52- sed -i -E 's/#define ONS_YURI_VERSION "(.+?)"/#define ONS_YURI_VERSION "${{ github.ref_name }}"/g' src/onsyuri/version.h
52+ if [ -z "$(echo ${{ github.ref_name }} | grep merge)" ]; then
53+ sed -i -E 's/#define ONS_YURI_VERSION "(.+?)"/#define ONS_YURI_VERSION "${{ github.ref_name }}"/g' src/onsyuri/version.h
54+ fi
5355 cd script
5456 SKIP_PORTS=yes bash cross_mingw${{ matrix.arch.suffix2 }}.sh
5557
You can’t perform that action at this time.
0 commit comments