Skip to content

Fixed goreleaser settings #19

Fixed goreleaser settings

Fixed goreleaser settings #19

Workflow file for this run

---
name: Release
on:
workflow_dispatch:
push:
tags:
- "v*"
jobs:
test:
runs-on: ubuntu-latest
container: cherts/pgscv-test-runner:1.0.2
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Prepare test environment
run: prepare-test-environment.sh
- name: Run lint
run: make lint
- name: Run test
run: make test
build:
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build image
run: make docker-build
- name: Log in to Docker Hub
run: docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push image to Docker Hub
run: make docker-push
goreleaser:
runs-on: ubuntu-latest
needs: build
steps:
- name: Run checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run setup Go
uses: actions/setup-go@v5
with:
go-version: 1.23
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }}