Skip to content

👷 #5 Setup automated releasing on tags #12

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

Merged
merged 6 commits into from
Apr 21, 2024
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
2 changes: 2 additions & 0 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
name: CI Checks

on:
workflow_call:

push:
branches: ["main"]

Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: Release

on:
workflow_call:

push:
tags:
- "*"

jobs:
lint:
uses: ./.github/workflows/checks.yaml

release:
needs:
- lint
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- uses: "actions/checkout@v3"
- uses: "actions/setup-python@v4"
with:
python-version: "3.11"

- name: Setup PDM
uses: pdm-project/setup-pdm@v4
with:
python-version: "3.11"
cache: true

- name: "Publish Package"
run: "make publish"
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ lint: ## Lint source code

build: ## Build the package
@pdm build

publish: ## Publish the package
@pdm publish
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<img loading="lazy" src="https://github.com/EinStack/glide-python/blob/main/docs/glide_logo.png?raw=1" alt="Glide Logo" width="200px" height="200px" />
<h1>Glide Python Client</h1>
<p>🐍 An official Python client for <a href="https://github.com/EinStack/glide">Glide, an open reliable fast model gateway</a>.</p>
<a href="https://pypi.org/project/glide-client/"><img alt="PyPI - Version" src="https://img.shields.io/pypi/v/glide-client"></a>
<a href="https://discord.gg/pt53Ej7rrc"><img src="https://img.shields.io/discord/1181281407813828710" alt="Discord" /></a>
<a href="https://glide.einstack.ai/"><img src="https://img.shields.io/badge/build-view-violet%20?style=flat&logo=books&label=docs&link=https%3A%2F%2Fglide.einstack.ai%2F" alt="Glide Docs" /></a>
<a href="https://github.com/EinStack/glide-python/blob/main/LICENSE"><img src="https://img.shields.io/github/license/EinStack/glide-python.svg?style=flat-square&color=%233f90c8" alt="License" /></a>
<a href="https://artifacthub.io/packages/helm/einstack/glide"><img src="https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/einstack" alt="ArtifactHub" /></a>
<a href="https://pypi.org/project/glide-client/"><img alt="PyPI - Downloads" src="https://img.shields.io/pypi/dm/glide-client"></a>
</div>

---
Expand Down
Loading