From 4d23d6041d883f60d96906c4b82fa3fc92c4eec6 Mon Sep 17 00:00:00 2001 From: Denys Seredenko Date: Wed, 15 Jan 2025 12:04:52 +0100 Subject: [PATCH] added release --- ...d-and-publish.yaml => build-and-test.yaml} | 0 .gitea/workflows/release.yaml | 32 +++++++++++++++++++ 2 files changed, 32 insertions(+) rename .gitea/workflows/{build-and-publish.yaml => build-and-test.yaml} (100%) create mode 100644 .gitea/workflows/release.yaml diff --git a/.gitea/workflows/build-and-publish.yaml b/.gitea/workflows/build-and-test.yaml similarity index 100% rename from .gitea/workflows/build-and-publish.yaml rename to .gitea/workflows/build-and-test.yaml diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml new file mode 100644 index 0000000..3d2f4b4 --- /dev/null +++ b/.gitea/workflows/release.yaml @@ -0,0 +1,32 @@ +name: Release + +on: [release] + +env: + VERSION: v0.0.0 + + +jobs: + build-test: + 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: Create and publish + uses: actions/release-action@main + with: + files: |- + build/** + api_key: '${{secrets.RELEASE_TOKEN}}' \ No newline at end of file