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