Skip to content

Commit

Permalink
Use github actions instead of manual
Browse files Browse the repository at this point in the history
  • Loading branch information
yuval9313 committed Nov 10, 2024
1 parent bc2b4de commit a12bc83
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: bump-version

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
Expand All @@ -37,31 +34,18 @@ jobs:

- name: Check that formatting, linting, and tests pass for pydantic v1
run: poetry run make ci-v1

- name: Check that formatting, linting, and tests pass for pydantic v2
run: poetry run make ci-v2

- name: Build distribution
run: poetry build

- name: Configure git user
run: |
git config --global user.name 'BumpVersion[CI]'
git config --global user.email '[email protected]'
- name: Bump to version
run: poetry run make version version=${{ github.ref_name }}

- name: Commit new version
run: |
git commit -am "Update version to ${{ github.ref_name }}"
git push
- name: Merge into master
run: |
git checkout master
git pull
git merge origin/bump-version
git push
uses: EndBug/add-and-commit@v9

- name: Publish distribution to PyPI
run: |
Expand Down

0 comments on commit a12bc83

Please sign in to comment.