Skip to content

Commit

Permalink
some minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bam4d committed Dec 7, 2023
1 parent c911159 commit 0c08000
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 4 deletions.
34 changes: 31 additions & 3 deletions .github/workflows/build_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
# We only deploy on tags and main branch
tags:
# Only run on tags that match the following regex
# This will match tags like v1.0.0, v1.0.1, etc.
- v[0-9]+.[0-9]+.[0-9]+
# This will match tags like 1.0.0, 1.0.1, etc.
- "[0-9]+.[0-9]+.[0-9]+"

# Build on pull requests
pull_request:
Expand Down Expand Up @@ -43,4 +43,32 @@ jobs:
# Mypy
- name: Mypy Check
run: |
poetry run mypy .
poetry run mypy .
publish:
if: startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
needs: lint
steps:

# Checkout the repository
- name: Checkout
uses: actions/checkout@v4

# Set python version to 3.11
- name: set python version
uses: actions/setup-python@v4
with:
python-version: 3.11

# build package using poetry
- name: Build Package
run: |
poetry version ${{ github.ref }}
poetry build
# Publish to PyPi
- name: Pypi publish (prod)
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
poetry publish
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "mistralai"
version = "0.1.0"
version = "0.0.1"
description = ""
authors = ["Bam4d <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 0c08000

Please sign in to comment.