-
Notifications
You must be signed in to change notification settings - Fork 27
42 lines (40 loc) · 1.3 KB
/
upload_release_assets.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
name: Upload assets to release
on:
release:
types:
- created
jobs:
build-ipfix-collector:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- name: Build assets
env:
TAG: ${{ github.ref }}
run: |
mkdir assets
VERSION="${TAG:10}" ./hack/release/prepare-assets.sh ./assets
- name: Upload ipfix-collector.yaml
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./assets/ipfix-collector.yaml
asset_name: ipfix-collector.yaml
asset_content_type: application/octet-stream
build-kafka-collector:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- name: Build assets
run: cp ./build/yamls/kafka-flow-collector.yaml ./assets
- name: Upload kafka-flow-collector.yaml
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./build/yamls/kafka-flow-collector.yaml
asset_name: kafka-flow-collector.yaml
asset_content_type: application/octet-stream