From ae9159f4e812d679f1fc32edea752e65363fec2a Mon Sep 17 00:00:00 2001 From: Tobias Melson Date: Sat, 27 Apr 2024 10:38:49 +0200 Subject: [PATCH] Updated pipeline --- .github/workflows/build_and_test.yml | 5 ++++- .github/workflows/release.yml | 30 ++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 7790d68..90986fd 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -1,5 +1,8 @@ name: Build and test -on: [push] +on: + push: + branches: + - main jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..abfc732 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +name: Release +on: + push: + tags: + - "v[0-9]+.[0-9]+.[0-9]+" +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.19 + + - name: Build + run: make + + - name: Unit tests + run: make unit-tests + + - name: Integration tests + run: make integration-tests + + - name: Publish release + uses: ncipollo/release-action@v1 + with: + artifacts: lisst + makeLatest: true