-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (42 loc) · 1.26 KB
/
release.yml
File metadata and controls
47 lines (42 loc) · 1.26 KB
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
name: Release Loki Parser Clickhouse Importer
on:
release:
types: [created]
workflow_dispatch:
jobs:
releases-matrix:
name: Release Matrix
runs-on: ubuntu-latest
permissions:
contents: write # Essential for creating releases
strategy:
matrix:
goos: [linux]
goarch: ["386", "arm", "amd64", "arm64"]
exclude:
- goarch: arm
goos: darwin
- goarch: "386"
goos: windows
- goarch: "386"
goos: darwin
steps:
- name: Get Release Info
run: |
echo "RELEASE_TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
echo "OS_NAME=${{ matrix.goos }}" >> $GITHUB_ENV
- name: OS darwin
if: matrix.goos == 'darwin'
run: echo "OS_NAME=macOS" >> $GITHUB_ENV
- uses: actions/checkout@v5
- uses: wangyoucao577/go-release-action@v1.53
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
md5sum: false
goversion: 1.24.9
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
build_command: make build
binary_name: loki-scraper
asset_name: "loki-scraper-${{ env.OS_NAME }}-${{ matrix.goarch }}"
compress_assets: false