From 36a543f3b91862213de72855b9a2603042e412a4 Mon Sep 17 00:00:00 2001 From: Matte23 Date: Tue, 9 Jul 2024 22:39:28 +0200 Subject: [PATCH] workflow: Move release condition --- .gitea/workflows/build.yaml | 2 +- Dockerfile | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 Dockerfile diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 0108f2e..38f1f55 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -28,6 +28,7 @@ jobs: release: runs-on: ubuntu-latest needs: build + if: startsWith(gitea.event.ref, 'refs/tags/v') steps: - uses: actions/download-artifact@v2 with: @@ -38,7 +39,6 @@ jobs: go-version: 1.21 - name: Release artifact id: use-go-action - if: startsWith(gitea.event.ref, 'refs/tags/v') uses: https://gitea.com/actions/release-action@main with: files: |- diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ef5ff1b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM scratch + +COPY InnkeeperBot / +RUN chmod a+x /InnkeeperBot