feat: move release to gha (#137)
This commit is contained in:
31
.github/workflows/ci.yaml
vendored
31
.github/workflows/ci.yaml
vendored
@ -1,6 +1,5 @@
|
||||
name: CI
|
||||
on:
|
||||
create:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
@ -126,4 +125,32 @@ jobs:
|
||||
- name: Checkout dependencies
|
||||
uses: ./.github/actions/deps-setup
|
||||
- name: Test
|
||||
run: make test-integration
|
||||
run: make docker-build
|
||||
|
||||
release:
|
||||
if: ${{ github.ref_type == 'tag' }}
|
||||
needs:
|
||||
- test-build
|
||||
- test-integration
|
||||
- test-docker
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Checkout dependencies
|
||||
uses: ./.github/actions/deps-setup
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v4
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Run GoReleaser
|
||||
uses: goreleaser/goreleaser-action@v5
|
||||
with:
|
||||
distribution: goreleaser
|
||||
version: latest
|
||||
args: release --clean
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
Reference in New Issue
Block a user