From c5805f65c4628e39d8fc61f32ac750e965dbf9e4 Mon Sep 17 00:00:00 2001 From: Denys Seredenko Date: Sun, 12 Jan 2025 11:57:22 +0100 Subject: [PATCH] * added workflow --- .gitea/workflows/build-and-publish.yaml | 32 +++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .gitea/workflows/build-and-publish.yaml diff --git a/.gitea/workflows/build-and-publish.yaml b/.gitea/workflows/build-and-publish.yaml new file mode 100644 index 0000000..3674722 --- /dev/null +++ b/.gitea/workflows/build-and-publish.yaml @@ -0,0 +1,32 @@ +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: Publish Artifact + uses: actions/upload-artifact@v2.2.0 + with: + name: ssh-hub-$VERSION + path: output/** + if-no-files-found: error + retention-days: 15 \ No newline at end of file