From 44fc2d7f0d80625900afd464d9adc8db2aca6fc8 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sat, 12 Apr 2025 14:06:28 +0200 Subject: [PATCH] chore(tooling): update workflow --- .forgejo/workflows/main.yaml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.forgejo/workflows/main.yaml b/.forgejo/workflows/main.yaml index 1c36362..ef9f6a3 100644 --- a/.forgejo/workflows/main.yaml +++ b/.forgejo/workflows/main.yaml @@ -1,10 +1,12 @@ --- +name: 'main' + on: push: workflow_dispatch: jobs: - test: + test-and-build: runs-on: 'self-hosted' steps: - uses: 'actions/checkout@v4' @@ -17,16 +19,6 @@ jobs: - name: 'check' run: | make check no-dirty - build: - if: "${{ startsWith(github.ref, 'refs/tags/') }}" - needs: - - 'test' - runs-on: 'self-hosted' - steps: - - uses: 'actions/checkout@v4' - - uses: 'actions/setup-go@v5' - with: - go-version-file: 'go.mod' - name: 'build' run: | printf '%s' "$GIT_CRYPT_SECRET" | base64 -d > secret @@ -36,6 +28,7 @@ jobs: GIT_CRYPT_SECRET: '${{ secrets.GIT_CRYPT }}' #- uses: 'actions/upload-artifact@v4' - uses: 'forgejo/upload-artifact@v4' + if: "${{ startsWith(github.ref, 'refs/tags/') }}" with: if-no-files-found: 'error' name: 'ods' @@ -70,4 +63,4 @@ jobs: release-dir: './' token: '${{ env.GITHUB_TOKEN }}' hide-archive-link: true - prerelease: true + prerelease: false