@@ -62,14 +62,26 @@ jobs:
6262 with :
6363 fetch-depth : 0
6464 token : " ${{ steps.app-token.outputs.token }}"
65+ path : client-python
6566 - name : Install python and dependencies
6667 run : |
6768 pipx install poetry || true
6869 - name : Setup Python
6970 uses : actions/setup-python@v5
7071 with :
71- python-version-file : pyproject.toml
72+ python-version-file : client-python/pyproject.toml
73+ - name : Fetch schema
74+ uses : actions/checkout@v5
75+ with :
76+ repository : goauthentik/authentik
77+ token : " ${{ steps.app-token.outputs.token }}"
78+ ref : " ${{ matrix.tag }}"
79+ path : authentik
80+ sparse-checkout : |
81+ schema.yml
82+ sparse-checkout-cone-mode : false
7283 - name : Publish
84+ working-directory : client-python
7385 run : |
7486 tag="${{ matrix.tag }}"
7587 version="$(echo -n "$tag" | sed 's/version\///')"
@@ -80,25 +92,25 @@ jobs:
8092 git checkout "$branch"
8193 fi
8294
83- make ref="$tag" version="$version"
95+ make version="$version"
8496
8597 git config --global user.name '${{ steps.app-token.outputs.app-slug }}[bot]'
8698 git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com'
8799
88100 git add .
89- git commit -F "diff.test " || exit 0
101+ git commit -m "Version $version " || exit 0
90102 git tag "$tag"
91103 git push origin "$branch"
92104 git push --tags
93105 cargo publish
94- truncate -s '<125000' diff.test
95- gh release create "$tag" -F diff.test --latest --title "$version"
106+ gh release create "$tag" --latest --title "$version"
96107 env :
97108 GH_TOKEN : " ${{ steps.app-token.outputs.token }}"
98109 - name : Build package
110+ working-directory : client-python
99111 run : |
100112 poetry build
101113 - name : Publish to PyPi
102114 uses : pypa/gh-action-pypi-publish@release/v1
103115 with :
104- packages-dir : dist/
116+ packages-dir : client-python/ dist/
0 commit comments