Update version #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Release | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- "v0.*" | |
- "v1.*" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
container: cherts/pgscv-test-runner:1.0.0 | |
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@v4 | |
with: | |
go-version: 1.22 | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v5 | |
with: | |
version: latest | |
args: release --clean | |
env: | |
GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }} |