Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
phi-friday committed Aug 26, 2024
1 parent 7cacc62 commit 13fe1da
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand All @@ -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 }}
# - name: Release to PyPI
# run: |
# uvx twine upload dist/* --non-interactive \
# --username __token__ --password ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 13fe1da

Please sign in to comment.