mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-04 03:56:17 +00:00
👷 Fix release.yml
more
This commit is contained in:
31
.github/workflows/release.yml
vendored
31
.github/workflows/release.yml
vendored
@@ -1,7 +1,7 @@
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
tags:
|
||||||
- master
|
- '*'
|
||||||
|
|
||||||
name: Release
|
name: Release
|
||||||
|
|
||||||
@@ -22,28 +22,13 @@ jobs:
|
|||||||
- name: Check out the repo
|
- name: Check out the repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Determine versioning strategy
|
- name: Version
|
||||||
uses: haya14busa/action-cond@v1
|
id: version
|
||||||
id: condval
|
|
||||||
with:
|
|
||||||
cond: ${{ github.ref == 'refs/heads/main' }}
|
|
||||||
if_true: "stable"
|
|
||||||
if_false: "stable"
|
|
||||||
|
|
||||||
- name: Auto Increment Ver Action
|
|
||||||
uses: docker://igorgov/auto-inc-ver:v2.0.0
|
|
||||||
id: versioning
|
|
||||||
with:
|
|
||||||
mode: ${{ steps.condval.outputs.value }}
|
|
||||||
suffix: 'dev'
|
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Get version parameters
|
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
echo ::set-output name=tag::${GITHUB_REF#refs/*/}
|
||||||
echo "##[set-output name=build_timestamp;]$(echo $(date +%s))"
|
echo "##[set-output name=build_timestamp;]$(echo $(date +%s))"
|
||||||
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
|
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
|
||||||
id: version_parameters
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: make build-all
|
run: make build-all
|
||||||
@@ -58,9 +43,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
artifacts: "bin/*"
|
artifacts: "bin/*"
|
||||||
commit: ${{ steps.version_parameters.outputs.branch }}
|
commit: ${{ steps.version.outputs.branch }}
|
||||||
tag: ${{ steps.versioning.outputs.version }}
|
tag: ${{ steps.version.outputs.tag }}
|
||||||
prerelease: ${{ github.ref != 'refs/heads/main' }}
|
prerelease: ${{ github.ref != 'refs/heads/master' }}
|
||||||
bodyFile: 'bin/README.md'
|
bodyFile: 'bin/README.md'
|
||||||
|
|
||||||
brew-tap:
|
brew-tap:
|
||||||
|
Reference in New Issue
Block a user