Skip to content

Commit

Permalink
chore: pypi release
Browse files Browse the repository at this point in the history
  • Loading branch information
egorchakov committed Oct 23, 2024
1 parent f4213e7 commit a9a22eb
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 30 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/build.yaml

This file was deleted.

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

on:
push:
branches: [main]
tags: ["*"]

release:
types: [published]

workflow_dispatch:

permissions:
attestations: write
contents: read
id-token: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: setup ssh
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.YAAK_IDL_REPO_SSH_KEY }}

- name: checkout
uses: actions/checkout@v4
with:
submodules: recursive
persist-credentials: false
fetch-depth: 0

- name: build and inspect
uses: hynek/build-and-inspect-python-package@v2.9.0
with:
attest-build-provenance-github: "true"

release:
environment: release
if: github.event.action == 'published'
runs-on: ubuntu-latest
needs: build

steps:
- uses: actions/download-artifact@v4
with:
name: Packages
path: dist

- uses: pypa/gh-action-pypi-publish@release/v1
with:
attestations: true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
## Installation

```bash
uv add https://github.com/yaak-ai/rbyte/releases/latest/download/rbyte-X.Y.Z-py3-none-any.whl [--extra <EXTRA>]
uv add rbyte [--extra <EXTRA>]
```

See [pyproject.toml](./pyproject.toml) for available extras.
Expand Down

0 comments on commit a9a22eb

Please sign in to comment.