diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 1ccc9f4..55326c5 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -17,16 +17,21 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: '3.x' + python-version: '3.11' - name: Install dependencies run: | python -m pip install --upgrade pip - pip install hatch hatchling toml - - name: Build - run: hatch build - - name: publish + pip install setuptools wheel twine toml "pymodaq>=4.1.0" pyqt5 + + - name: create local pymodaq folder and setting permissions + run: | + sudo mkdir /etc/.pymodaq + sudo chmod uo+rw /etc/.pymodaq + + - name: Build and publish env: - HATCH_INDEX_USER: ${{ secrets.PYPI_USERNAME }} - HATCH_INDEX_AUTH: ${{ secrets.PYPI_PASSWORD }} + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | - hatch publish + python setup.py sdist bdist_wheel + twine upload dist/*