Skip to content

Commit

Permalink
✨ Update version to 0.2.0, add Mkdocs to .gitignore, and enhance rele…
Browse files Browse the repository at this point in the history
…ase workflow with version bumping
  • Loading branch information
grelinfo committed Nov 26, 2024
1 parent bd16cb4 commit 0611405
Show file tree
Hide file tree
Showing 6 changed files with 449 additions and 7 deletions.
31 changes: 30 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,40 @@ permissions:
contents: write

jobs:
bump-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true

- name: Get release version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Bump version
run: hatch version $RELEASE_VERSION

- name: Commit version
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git add .
git commit -m "🚀 Release $RELEASE_VERSION"
git push
publish-docs:
runs-on: ubuntu-latest
needs: [bump-version]
steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true

- name: Configure Git Credentials
run: |
Expand All @@ -32,14 +59,16 @@ jobs:
run: uv run mkdocs gh-deploy --force

publish-pypi:
needs: publish-docs
needs: [bump-version]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true

- name: Build
run: uv build
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ wheels/
# Coverage
cov.xml
.coverage

# Mkdocs
site/
2 changes: 1 addition & 1 deletion CNAME
Original file line number Diff line number Diff line change
@@ -1 +1 @@
grelmicro.grel.info
grelmicro.grel.info
2 changes: 1 addition & 1 deletion grelmicro/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Grelmicro is a lightweight framework/toolkit which is ideal for building async microservices in Python.""" # noqa: E501

__version__ = "0.1.2"
__version__ = "0.2.0"
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ dev = [
"mdformat-ruff>=0.1.3",
"mdx-include>=1.4.2",
"faststream>=0.5.30",
"hatch>=1.13.0",
]
docs = [
"mike>=2.1.3",
Expand Down
Loading

0 comments on commit 0611405

Please sign in to comment.