Skip to content

Commit

Permalink
release with uv
Browse files Browse the repository at this point in the history
  • Loading branch information
tschm committed Nov 27, 2024
1 parent 734361a commit 07aa694
Showing 1 changed file with 36 additions and 2 deletions.
38 changes: 36 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,42 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cvxgrp/.github/actions/build@main
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v3
with:
# Install a specific version of uv.
version: "0.5.4"

- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}

- name: Install the project
run: uv sync

- name: Change version in pyproject.toml
shell: bash
run: |
sed -i -e "s/0.0.0/${GITHUB_REF#refs/*/}/" pyproject.toml
uv build
#poetry version ${{ github.ref_name }}
#poetry build
#Archive the dist folder
- name: Archive sphinx documentation
uses: actions/upload-artifact@v4
with:
name: dist
path: dist
retention-days: 1

# Push dist folder to the build branch
- name: Publish the dist folder
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: dist # The branch the action should deploy to.
folder: dist # The folder the action should deploy.

deploy:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 07aa694

Please sign in to comment.