diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index ce765b7..78ed376 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -3,14 +3,15 @@ name: Publish Package on: release: types: [created] + push: + branches: ["main"] jobs: publish: runs-on: ubuntu-latest name: "Publish library" - strategy: - matrix: - python-version: ["3.12"] + env: + PYTHON_VERSION: 3.9 steps: - name: Check out @@ -19,15 +20,8 @@ jobs: token: "${{ secrets.GITHUB_TOKEN }}" fetch-depth: 0 - - name: Install python - uses: actions/setup-python@v4 - id: install-python - with: - python-version: ${{ matrix.python-version }} - - - name: Install uv - uses: yezz123/setup-uv@v4 - id: install-uv + - name: Set up uv + run: curl -LsSf https://astral.sh/uv/install.sh | sh - name: Build package run: | @@ -36,7 +30,7 @@ jobs: sed -i'' -E "s/version = \"0.0.0\"/version = \"$VERSION\"/g" pyproject.toml uvx --from build pyproject-build --installer uv - - name: Release to PyPI - run: | - uvx twine upload dist/* --non-interactive \ - --username __token__ --password ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file + # - name: Release to PyPI + # run: | + # uvx twine upload dist/* --non-interactive \ + # --username __token__ --password ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file