From 9323d78c37f2ff9e919a6c4047b701a4c698c4c1 Mon Sep 17 00:00:00 2001
From: sigmasternchen <git@sigma-star.io>
Date: Mon, 6 Jan 2025 21:25:58 +0100
Subject: [PATCH] chore: Add release pipeline

---
 .github/workflows/release.yml | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 .github/workflows/release.yml

diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 0000000..444eb85
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,32 @@
+name: Release
+
+on:
+  push:
+    tags: [ "*" ]
+
+jobs:
+  release:
+    runs-on: ubuntu-latest
+    permissions:
+      id-token: write
+    steps:
+    - uses: actions/checkout@v3
+    - name: Set up Python
+      uses: actions/setup-python@v3
+      with:
+        python-version: 3.11
+    - name: Set up Poetry
+      run: |
+        python -m pip install poetry
+    - name: Install dependencies
+      run: |
+        poetry install
+    - name: Build
+      run: |
+        poetry build
+    - name: Mint token
+      id: mint
+      uses: tschm/token-mint-action@v1.0.2
+    - name: Publish
+      run: |
+        poetry publish -u __token__ -p '${{ steps.mint.outputs.api-token}}'
\ No newline at end of file