File tree Expand file tree Collapse file tree 1 file changed +0
-65
lines changed
Expand file tree Collapse file tree 1 file changed +0
-65
lines changed Original file line number Diff line number Diff line change 2121 with :
2222 config-file : " release-please-config.json"
2323 manifest-file : " .release-please-manifest.json"
24-
25- publish :
26- needs : release-please
27- runs-on : ubuntu-latest
28- if : ${{ needs. release-please.outputs.release_created }}
29-
30- steps :
31- - name : Checkout
32- uses : actions/checkout@v6
33-
34- - name : Install uv
35- uses : astral-sh/setup-uv@v7
36- with :
37- version : " 0.9.*"
38- enable-cache : true
39- python-version : " 3.13"
40-
41- - name : Install dependencies
42- run : uv sync
43-
44- - name : Build package
45- run : uv build
46-
47- - name : Publish to PyPI
48- env :
49- UV_PUBLISH_USERNAME : ${{ secrets.PYPI_USERNAME }}
50- UV_PUBLISH_PASSWORD : ${{ secrets. PYPI_PASSWORD }}
51- run : uv publish dist/*
52-
53- publish-docker :
54- needs : release-please
55- runs-on : ubuntu-latest
56- if : ${{ needs.release-please.outputs.release_created }}
57-
58- steps :
59- - name : Checkout
60- uses : actions/checkout@v6
61-
62- - name : Set up Docker Buildx
63- uses : docker/setup-buildx-action@v3
64-
65- - name : Log in to GitHub Container Registry
66- uses : docker/login-action@v3
67- with :
68- registry : ghcr.io
69- username : ${{ github.actor }}
70- password : ${{ secrets.GITHUB_TOKEN }}
71-
72- - name : Extract metadata
73- id : meta
74- uses : docker/metadata-action@v5
75- with :
76- images : ghcr.io/${{ github.repository }}
77- tags : |
78- type=raw,value=${{ needs.release-please.outputs.tag_name }}
79- type=raw,value={{date 'YYYYMMDD-HHmmss' tz='UTC'}}
80- type=raw,value=latest
81-
82- - name : Build and push
83- uses : docker/build-push-action@v6
84- with :
85- context : .
86- push : true
87- tags : ${{ steps.meta. outputs.tags }}
88- labels : ${{ steps.meta.outputs. labels }}
You can’t perform that action at this time.
0 commit comments