-
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) 路 1.05 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
name: Release
on:
push:
tags:
- "*"
permissions:
contents: write
jobs:
# Release the Application
release:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [1.19.x]
steps:
# Step 1 - Checks-out your repository under $GITHUB_WORKSPACE
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
# Step 2 - Install Go on the runner
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
# Step 4 - Login to GitHub Registry
- name: Login to GitHub Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GIT_TOKEN }}
# Step 4 - Run GoReleaser
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}