@@ -66,41 +66,41 @@ jobs:
6666 hatch run pip install jupyter
6767 hatch run jupyter execute examples/pipeline.ipynb
6868
69- # publish:
70- # name: Publish to PyPI
71- # if: startsWith(github.ref, 'refs/tags/v')
72- # needs: test_qek_ubuntu
73- # runs-on: ubuntu-latest
74- # permissions:
75- # # IMPORTANT: this permission is mandatory for trusted publishing
76- # id-token: write
77- # steps:
78- # - name: Check out Qek
79- # uses: actions/checkout@v4
80- # with:
81- # ref: ${{ github.ref }}
82- # - name: Set up Python
83- # uses: actions/setup-python@v5
84- # with:
85- # python-version: "3.10"
86- # - name: Install Python dependencies
87- # run: |
88- # python -m pip install --upgrade pip
89- # pip install hatch
90- # - name: Build and publish package
91- # run: |
92- # hatch build
93- # - name: Publish to PyPI
94- # uses: pypa/gh-action-pypi-publish@release/v1
95- # - name: Confirm deployment
96- # timeout-minutes: 5
97- # run: |
98- # VERSION=${GITHUB_REF#refs/tags/v}
99- # until pip download qek==$VERSION
100- # do
101- # echo "Failed to download from PyPI, will wait for upload and retry."
102- # sleep 1
103- # done
69+ publish :
70+ name : Publish to PyPI
71+ if : startsWith(github.ref, 'refs/tags/v')
72+ needs : test_qek_ubuntu
73+ runs-on : ubuntu-latest
74+ permissions :
75+ # IMPORTANT: this permission is mandatory for trusted publishing
76+ id-token : write
77+ steps :
78+ - name : Check out QEK
79+ uses : actions/checkout@v4
80+ with :
81+ ref : ${{ github.ref }}
82+ - name : Set up Python
83+ uses : actions/setup-python@v5
84+ with :
85+ python-version : " 3.10"
86+ - name : Install Python dependencies
87+ run : |
88+ python -m pip install --upgrade pip
89+ pip install hatch
90+ - name : Build and publish package
91+ run : |
92+ hatch build
93+ - name : Publish to PyPI
94+ uses : pypa/gh-action-pypi-publish@release/v1
95+ - name : Confirm deployment
96+ timeout-minutes : 5
97+ run : |
98+ VERSION=${GITHUB_REF#refs/tags/v}
99+ until pip download qek==$VERSION
100+ do
101+ echo "Failed to download from PyPI, will wait for upload and retry."
102+ sleep 1
103+ done
104104
105105 deploy_docs :
106106 name : Deploy QEK docs (ubuntu)
0 commit comments