@@ -24,54 +24,11 @@ jobs:
2424 path : dist/*
2525 if-no-files-found : error
2626
27- bundle :
28- name : build binary files
29- runs-on : ${{ matrix.os }}
30- strategy :
31- fail-fast : false
32- matrix :
33- os :
34- - ' windows-latest'
35- - ' ubuntu-latest'
36- - ' macos-latest'
37-
38- steps :
39- - uses : actions/checkout@v4
40- - name : Install uv
41- uses : astral-sh/setup-uv@v3
42- with :
43- enable-cache : true
44- - name : Install dependencies
45- run : uv sync --group bundle
46- - run : uv run pyinstaller --name scim2-${{ matrix.os }} --onefile scim2_cli/__init__.py
47- - run : ./dist/scim2-${{ matrix.os }}
48- - uses : actions/upload-artifact@v4
49- if : ${{ matrix.os != 'windows-latest' }}
50- with :
51- name : scim2-${{ github.ref_name }}-${{ matrix.os }}
52- path : ./dist/scim2-${{ matrix.os }}
53- if-no-files-found : error
54- - uses : actions/upload-artifact@v4
55- if : ${{ matrix.os == 'windows-latest' }}
56- with :
57- name : scim2-${{ github.ref_name }}-${{ matrix.os }}
58- path : ./dist/scim2-${{ matrix.os }}.exe
59- if-no-files-found : error
60-
6127 release :
6228 name : create Github release
63- needs : bundle
6429 runs-on : ubuntu-latest
6530 steps :
66- - uses : actions/download-artifact@v4
67- with :
68- pattern : scim2-${{ github.ref_name }}-*
69- - name : Display structure of downloaded files
70- run : ls -R
7131 - uses : softprops/action-gh-release@v2
72- with :
73- files :
74- scim2-${{ github.ref_name }}-*/*
7532
7633 publish :
7734 name : release to pypi
8037
8138 environment :
8239 name : pypi-release
83- url : https://pypi.org/project/scim2-cli /
40+ url : https://pypi.org/project/scim2-models /
8441 permissions :
8542 id-token : write
8643
0 commit comments