-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (48 loc) · 1.59 KB
/
release-artifacts-windows.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: Publish artifacts on a new release windows
on:
release:
types: [published]
jobs:
publish_artifacts:
strategy:
matrix:
os_arch: [ windows_amd64 ]
name: publish artifacts
runs-on: macos-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: "1.19"
- name: Install go tools
run: make install-tools
- name: Install builder
run: make install-builder
working-directory: ./otelbuilder
- name: build artifacts
run: make otelcol-logzio-${{ matrix.os_arch }}
working-directory: ./otelbuilder
- name: compress artifacts
uses: a7ul/[email protected]
id: compress
with:
command: c
cwd: ./otelbuilder/cmd
files: |
./otelcol-logzio-${{ matrix.os_arch }}.exe
outPath: ./otelbuilder/cmd/otelcol-logzio-${{ matrix.os_arch }}.tar.gz
- name: zip artifacts
uses: papeloto/action-zip@v1
with:
files: ./otelbuilder/cmd/otelcol-logzio-${{ matrix.os_arch }}.exe
dest: ./otelbuilder/cmd/otelcol-logzio-${{ matrix.os_arch }}.zip
- name: upload artifacts to release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
./otelbuilder/cmd/otelcol-logzio-${{ matrix.os_arch }}.exe
./otelbuilder/cmd/otelcol-logzio-${{ matrix.os_arch }}.tar.gz
./otelbuilder/cmd/otelcol-logzio-${{ matrix.os_arch }}.zip