-
Notifications
You must be signed in to change notification settings - Fork 14
48 lines (46 loc) · 1.47 KB
/
release-assets.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
name: Upload release assets
on:
release:
types:
- created
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
release-assets:
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
go-version: 1.22.4
- name: Get tag from current run
run: |
TAG=${{ github.ref_name }}
echo "Tag for packaging chart is $TAG"
echo "RELEASE_TAG=${TAG}" >> $GITHUB_ENV
echo "RELEASE_TAG_TRIMMED_V=${TAG#v}" >> $GITHUB_ENV
- run: make build-dist-manifests IMG=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${RELEASE_TAG}
- uses: svenstaro/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/etcd-operator.yaml
asset_name: etcd-operator.yaml
tag: ${{ github.ref }}
overwrite: true
- uses: svenstaro/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/etcd-operator.crds.yaml
asset_name: etcd-operator.crds.yaml
tag: ${{ github.ref }}
overwrite: true
- uses: svenstaro/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/etcd-operator.non-crds.yaml
asset_name: etcd-operator.non-crds.yaml
tag: ${{ github.ref }}
overwrite: true