Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spelling #9

Merged
merged 4 commits into from
Oct 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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