@@ -12,6 +12,7 @@ permissions:
1212jobs :
1313 build-linux :
1414 runs-on : ubuntu-latest
15+ if : ${{ !endsWith(github.ref_name, '-legacy') }}
1516 steps :
1617 - uses : actions/checkout@v4
1718 - uses : actions/setup-python@v5
3334 name : TinyTouch-linux-x64
3435 path : dist/TinyTouch-${{ github.ref_name }}-linux-x64.zip
3536
36- build-linux-legacy :
37- runs-on : ubuntu-20.04
38- steps :
39- - uses : actions/checkout@v4
40- - uses : actions/setup-python@v5
41- with :
42- python-version : " 3.11"
43- - name : Install deps
44- run : |
45- python -m pip install --upgrade pip setuptools wheel
46- pip install -r requirements.txt
47- - name : Build (PyInstaller)
48- run : |
49- TINYTOUCH_APP_NAME=TinyTouch-${{ github.ref_name }}-legacy python -m PyInstaller TinyTouch.spec
50- - name : Package
51- run : |
52- cd dist
53- zip -r TinyTouch-${{ github.ref_name }}-linux-x64-legacy.zip TinyTouch-${{ github.ref_name }}-legacy
54- - uses : actions/upload-artifact@v4
55- with :
56- name : TinyTouch-linux-x64-legacy
57- path : dist/TinyTouch-${{ github.ref_name }}-linux-x64-legacy.zip
58-
5937 build-windows :
6038 runs-on : windows-latest
39+ if : ${{ !endsWith(github.ref_name, '-legacy') }}
6140 steps :
6241 - uses : actions/checkout@v4
6342 - uses : actions/setup-python@v5
8160
8261 release :
8362 runs-on : ubuntu-latest
84- needs : [build-linux, build-linux-legacy, build- windows]
85- if : startsWith(github.ref, 'refs/tags/')
63+ needs : [build-linux, build-windows]
64+ if : startsWith(github.ref, 'refs/tags/') && !endsWith(github.ref_name, '-legacy')
8665 steps :
8766 - uses : actions/download-artifact@v4
8867 with :
9372 name : TinyTouch ${{ github.ref_name }}
9473 files : |
9574 dist/TinyTouch-linux-x64/TinyTouch-${{ github.ref_name }}-linux-x64.zip
96- dist/TinyTouch-linux-x64-legacy/TinyTouch-${{ github.ref_name }}-linux-x64-legacy.zip
9775 dist/TinyTouch-windows-x64/TinyTouch-${{ github.ref_name }}-windows-x64.zip
0 commit comments