workflow: Move release condition
All checks were successful
Build artifact / build (push) Successful in 38s
Build artifact / release (push) Has been skipped

This commit is contained in:
2024-07-09 22:39:28 +02:00
parent 2abf750fc6
commit 36a543f3b9
2 changed files with 5 additions and 1 deletions

View File

@@ -28,6 +28,7 @@ jobs:
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs: build
if: startsWith(gitea.event.ref, 'refs/tags/v')
steps: steps:
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v2
with: with:
@@ -38,7 +39,6 @@ jobs:
go-version: 1.21 go-version: 1.21
- name: Release artifact - name: Release artifact
id: use-go-action id: use-go-action
if: startsWith(gitea.event.ref, 'refs/tags/v')
uses: https://gitea.com/actions/release-action@main uses: https://gitea.com/actions/release-action@main
with: with:
files: |- files: |-

4
Dockerfile Normal file
View File

@@ -0,0 +1,4 @@
FROM scratch
COPY InnkeeperBot /
RUN chmod a+x /InnkeeperBot