Skip to content

Commit

Permalink
Merge pull request #1 from SchematicHQ/fern-bot/05-14-2024-0650PM
Browse files Browse the repository at this point in the history
🌿 Fern Regeneration -- May 14, 2024
  • Loading branch information
bpapillon authored May 14, 2024
2 parents 3d4ca0f + 7cab6b1 commit 5fa0ed0
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,27 @@ jobs:
run: poetry install
- name: Test
run: poetry run pytest .

publish:
needs: [compile, test]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-20.04
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Bootstrap poetry
run: |
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
- name: Install dependencies
run: poetry install
- name: Publish to pypi
run: |
poetry config repositories.remote https://upload.pypi.org/legacy/
poetry --no-interaction -v publish --build --repository remote --username "$PYPI_USERNAME" --password "$PYPI_PASSWORD"
env:
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
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 = "schematic"
version = "0.0.0"
version = "0.0.4"
description = ""
readme = "README.md"
authors = []
Expand Down
2 changes: 1 addition & 1 deletion src/schematic/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def get_headers(self) -> typing.Dict[str, str]:
headers: typing.Dict[str, str] = {
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "schematic",
"X-Fern-SDK-Version": "0.0.0",
"X-Fern-SDK-Version": "0.0.4",
}
headers["X-Schematic-Api-Key"] = self.api_key
return headers
Expand Down

0 comments on commit 5fa0ed0

Please sign in to comment.