From f1d241ee6a750cfa66c60a2ee48a6a5d2a38e749 Mon Sep 17 00:00:00 2001 From: MatteoSchiff Date: Wed, 13 Mar 2024 14:44:06 +0100 Subject: [PATCH] workflows: Publish release using a job --- .gitea/workflows/build.yaml | 16 ++++++++++++++++ .gitea/workflows/release.yaml | 23 ----------------------- 2 files changed, 16 insertions(+), 23 deletions(-) delete mode 100644 .gitea/workflows/release.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 51052fd..6a75621 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -24,3 +24,19 @@ jobs: with: name: InnkeeperBot path: ./InnkeeperBot + + release: + runs-on: ubuntu-latest + needs: build + steps: + - uses: actions/download-artifact@v2 + with: + name: InnkeeperBot + - name: Release artifact + id: use-go-action + uses: https://gitea.com/actions/release-action@main + with: + files: |- + InnkeeperBot + api_key: '${{secrets.RELEASE_TOKEN}}' + diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml deleted file mode 100644 index 4cfb08b..0000000 --- a/.gitea/workflows/release.yaml +++ /dev/null @@ -1,23 +0,0 @@ -name: Release and publish -run-name: Release from ${{ gitea.actor }} 🚀 -on: - workflow_run: - workflows: ["Build artifact"] - #branches: [main] - types: - - completed - -jobs: - release: - runs-on: ubuntu-latest - steps: - - uses: actions/download-artifact@v2 - with: - name: InnkeeperBot - - name: Use Go Action - id: use-go-action - uses: https://gitea.com/actions/release-action@main - with: - files: |- - InnkeeperBot - api_key: '${{secrets.RELEASE_TOKEN}}'