forked from lesovsky/pgscv
-
-
Notifications
You must be signed in to change notification settings - Fork 5
57 lines (53 loc) · 1.29 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---
name: Release
on:
workflow_dispatch:
push:
tags:
- "v*"
jobs:
test:
runs-on: ubuntu-latest
container: cherts/pgscv-test-runner:1.0.3
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 }}