forked from open-telemetry/opentelemetry-collector-releases
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (45 loc) · 1.18 KB
/
nsof-release.yaml
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
name: Nsof release builder
on:
workflow_dispatch:
push:
branches: [nsof-*]
paths:
- ".goreleaser.yaml"
- "distributions/otelcol-contrib/manifest.yaml"
jobs:
build:
name: Build Debian Package
strategy:
matrix:
GOOS: [linux]
GOARCH: [amd64]
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '~1.21.1'
check-latest: true
- name: Generate the sources
run: make generate-sources
env:
DISTRIBUTIONS: otelcol-contrib
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: --skip-validate --skip-sign --clean --timeout 2h
env:
GOOS: ${{ matrix.GOOS }}
GOARCH: ${{ matrix.GOARCH }}
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v3
with:
name: all-artifacts
path: dist/*/*