Files
ssh-hub/.gitea/workflows/build-and-publish.yaml
Denys Seredenko c0a4e2be88
Some checks failed
Go / build-test-publish (1.23.4) (push) Failing after 47s
* fixing workflow
2025-01-12 12:17:04 +01:00

34 lines
765 B
YAML

name: Go
on: [push]
env:
VERSION: v0.0.0
jobs:
build-test-publish:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.23.4']
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Install dependencies
run: go get .
- name: Build
run: go build -o ./build/ssh-hub
- name: Test
run: go test
- name: DEBUG
run: ls -lah
- name: Publish Artifact
uses: actions/upload-artifact@v2.2.0
with:
name: ssh-hub-${{ VERSION }}
path: build/**
if-no-files-found: error
retention-days: 15