👷 Fix release.yml more

This commit is contained in:
M. Mert Yildiran
2022-12-30 06:13:38 +03:00
parent f1db06c840
commit af488288f2

View File

@@ -1,7 +1,7 @@
on:
push:
branches:
- master
tags:
- '*'
name: Release
@@ -22,28 +22,13 @@ jobs:
- name: Check out the repo
uses: actions/checkout@v2
- name: Determine versioning strategy
uses: haya14busa/action-cond@v1
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
- name: Version
id: version
shell: bash
run: |
echo ::set-output name=tag::${GITHUB_REF#refs/*/}
echo "##[set-output name=build_timestamp;]$(echo $(date +%s))"
echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: version_parameters
- name: Build
run: make build-all
@@ -58,9 +43,9 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: "bin/*"
commit: ${{ steps.version_parameters.outputs.branch }}
tag: ${{ steps.versioning.outputs.version }}
prerelease: ${{ github.ref != 'refs/heads/main' }}
commit: ${{ steps.version.outputs.branch }}
tag: ${{ steps.version.outputs.tag }}
prerelease: ${{ github.ref != 'refs/heads/master' }}
bodyFile: 'bin/README.md'
brew-tap: