From 4c13340ca055638d6dc5116e68fe47176461a2b7 Mon Sep 17 00:00:00 2001 From: ngn Date: Mon, 12 May 2025 19:58:55 +0300 Subject: [PATCH] add release workflow Signed-off-by: ngn --- .gitea/workflows/format.yml | 4 ++-- .gitea/workflows/release.yml | 26 ++++++++++++++++++++++++++ README.md | 1 + 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 .gitea/workflows/release.yml diff --git a/.gitea/workflows/format.yml b/.gitea/workflows/format.yml index e9cd78e..6bc492f 100644 --- a/.gitea/workflows/format.yml +++ b/.gitea/workflows/format.yml @@ -10,11 +10,11 @@ on: - "pyproject.toml" jobs: - build: + format: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: "https://github.com/actions/checkout@v4" + uses: actions/checkout@v4 - name: Install black formatter run: | diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml new file mode 100644 index 0000000..7ce95fb --- /dev/null +++ b/.gitea/workflows/release.yml @@ -0,0 +1,26 @@ +name: release + +on: + push: + tags: + - "*" + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Build wheel package + run: | + sudo apt update -y + sudo apt install -y python3 python3-build python3-requests make + make + + - name: Create release + uses: "https://gitea.com/actions/release-action@main" + with: + api_key: ${{secrets.REPO_TOKEN}} + files: + - "dist/**" diff --git a/README.md b/README.md index c6ee1e3..ead91fa 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # ups | upstream scripts ![](https://git.ngn.tf/ngn/ups/actions/workflows/format.yml/badge.svg) +![](https://git.ngn.tf/ngn/ups/actions/workflows/release.yml/badge.svg) collection of bash and python scripts for pulling and managing patches from the upstream git repos of my personal forks