try to build binaries on tag; link release later by hand
so we have options an failures without mailing our Couper folk
name: Release
on:
- release:
- types: [prereleased,released]
+ push:
+ tags:
+ - v1.*
+ - v1-test.*
+# release:
+# types: [prereleased,released]
jobs:
linux-windows:
@@ -132,7 +136,7 @@ jobs:
chmod +x tg
./tg -i ./github/workflows/couper.rb
- name: 'publish formula'
- uses: dmnemec/copy_file_to_another_repo_action@main
+ uses: dmnemec/copy_file_to_another_repo_action@v1.1.1
env:
API_TOKEN_GITHUB: ${{ secrets.GH_COUPER_API_TOKEN }}
with:
@@ -140,6 +144,7 @@ jobs:
destination_repo: 'avenga/homebrew-couper'
destination_folder: './'
destination_branch: 'main'
+ destination_branch_create: 'release.${GITHUB_REF_NAME}' # due to testing purposes; create branch for merging later on
user_email: 'gitbot@couper.io'
user_name: 'couper-gitbot'
commit_message: 'Update formula to ${GITHUB_REF_NAME} release'
