Skip to content

Commit

Permalink
Test Version Numbering and release draft
Browse files Browse the repository at this point in the history
  • Loading branch information
CEKlopfenstein committed May 18, 2024
1 parent ae65cc9 commit b6323e1
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: Makefile CI
name: Prerelease Pipeline

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:

jobs:
Expand All @@ -22,5 +18,21 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: my-artifact
path: build/cekwebhooks-linux-amd64.so
path: build/cekwebhooks-linux-*
retention-days: 1

- name: Determine Version Number
id: version
run: |
echo "TAG_NAME=$(date +%Y).$((1+$(git tag -l --sort=-creatordate|grep -v 'pre'|head -n 1|sed -E 's/^[^\.]+\.//g;s/\..+//g'))).$(git log --oneline HEAD...$(git tag -l --sort=-creatordate|grep -v 'pre'|head -n 1)|wc -l)-pre" >> $GITHUB_OUTPUT
- name: Release
uses: softprops/action-gh-release@v2
tag_name: ${{ steps.version.outputs.TAG_NAME }}
name: Prerelease - ${{ steps.version.outputs.TAG_NAME }}
draft: true
make_latest: false
with:
files: |
build/cekwebhooks-linux-amd64.so
build/cekwebhooks-linux-arm-7.so
build/cekwebhooks-linux-arm64.so

0 comments on commit b6323e1

Please sign in to comment.