Skip to content

Commit

Permalink
Merge pull request #9 from MirageML/aman/pypi_test
Browse files Browse the repository at this point in the history
Fix spelling
  • Loading branch information
AmanKishore authored Oct 22, 2023
2 parents f6768e2 + 5bdd422 commit 8d97430
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 31 deletions.
36 changes: 7 additions & 29 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,51 +8,29 @@

name: Upload Python Package to PyPI

on: push

on:
release:
types: [created]

jobs:
update-version:
name: Update version
if: github.actor != 'modal-pr-review-automation[bot]' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest


- uses: actions/checkout@v3
with:
token: ${{ steps.generate_token.outputs.token }}


deploy:

name: Deploy
runs-on: ubuntu-latest

steps:
- name: Generate token for Github PR Bot
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.GH_PRBOT_APP_ID }}
private_key: ${{ secrets.GH_PRBOT_APP_PRIVATE_KEY }}

- uses: actions/checkout@v3
with:
token: ${{ steps.generate_token.outputs.token }}

- name: Set up Python
uses: ./.github/actions/setup-cached-python
with:
version: "3.9"

- name: Bump the version number
run: inv update-build-number $GITHUB_RUN_NUMBER
run: inv update-build-number

- uses: EndBug/add-and-commit@v9
- uses: stefanzweifel/git-auto-commit-action@v5
with:
add: modal_version/_version_generated.py
message: "[auto-commit] [skip ci] Bump the build number"
pull: "--rebase --autostash"
default_author: github_actions
commit_message: Bump the build number

- name: Install dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion mirageml_version/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright Mirage ML Inc 2023
"""Specifies the `mimrageml.__version__` number for the client package."""
"""Specifies the `mirageml.__version__` number for the client package."""

from ._version_generated import build_number

Expand Down
2 changes: 1 addition & 1 deletion mirageml_version/_version_generated.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Copyright Mirage ML 2023
build_number = 1
build_number = 2

0 comments on commit 8d97430

Please sign in to comment.