diff --git a/.forgejo/workflows/build-release.yml b/.forgejo/workflows/build-release.yml index 053ccd2..babe110 100644 --- a/.forgejo/workflows/build-release.yml +++ b/.forgejo/workflows/build-release.yml @@ -8,15 +8,21 @@ jobs: uses: actions/checkout@v3 - name: Verify Go Installation + shell: bash run: | - go version || (echo "Go is not installed!" && exit 1) + if ! go version; then + echo "Go is not installed!" + exit 1 + fi - name: Build Go Application + shell: bash run: | go build -o spitfire-installer.exe echo "Application built successfully." - name: Run Go Application + shell: bash run: | ./spitfire-installer.exe || echo "Application failed to run." @@ -38,3 +44,4 @@ jobs: - name: Run Go Application run: | ./spitfire-installer || echo "Application failed to run." +