-
Notifications
You must be signed in to change notification settings - Fork 6
46 lines (44 loc) · 1.31 KB
/
release.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
# workflow name
name: Generate release-artifacts
# on events
on:
push:
tags:
- '*'
# workflow tasks
jobs:
generate:
name: Generate cross-platform builds
runs-on: ubuntu-latest
steps:
- uses: olegtarasov/[email protected]
id: tagName
with:
tagRegex: "v(.*)" # Optional. Returns specified group text as tag name. Full tag string is returned if regex is not defined.
tagRegexGroup: 1 # Optional. Default is 1.
- name: Checkout the repository
uses: actions/checkout@v2
with:
submodules: true
- name: Generate build files
uses: adamruzicka/[email protected]
with:
platforms: 'linux/amd64'
package: 'src'
name: 'foreman_ygg_worker-${{ steps.tagName.outputs.tag }}'
compress: 'true'
dest: 'dist'
- name: Generate distribution tarball
run: |
make distribution-tarball
sudo mv *.tar.gz dist/
env:
VERSION: '${{ steps.tagName.outputs.tag }}'
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/*
tag: ${{ github.ref }}
overwrite: true
file_glob: true