mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-08-22 06:18:58 +00:00
add release creation and artificat upload
This commit is contained in:
@@ -31,6 +31,12 @@ jobs:
|
||||
- name: set commit
|
||||
id: set_commit
|
||||
run: echo "short_commit=${GITHUB_SHA::7}" >> $GITHUB_OUTPUT
|
||||
- name: create release
|
||||
uses: softprops/action-gh-release@v3
|
||||
if: github.ref_type == 'tag' && github.event_name != 'workflow_dispatch' && startsWith(github.ref, 'refs/tags/v')
|
||||
with:
|
||||
draft: true
|
||||
generate_release_notes: true
|
||||
linux_amd64:
|
||||
runs-on: ubuntu-24.04
|
||||
needs: setup_release
|
||||
@@ -59,6 +65,12 @@ jobs:
|
||||
name: showbridge-linux-amd64
|
||||
path: |
|
||||
showbridge_*.tar.gz
|
||||
- name: upload artifacts to release
|
||||
uses: softprops/action-gh-release@v3
|
||||
if: github.ref_type == 'tag' && github.event_name != 'workflow_dispatch' && startsWith(github.ref, 'refs/tags/v')
|
||||
with:
|
||||
draft: true
|
||||
files: showbridge_*.tar.gz
|
||||
linux_arm64:
|
||||
runs-on: ubuntu-24.04-arm
|
||||
needs: setup_release
|
||||
@@ -87,6 +99,12 @@ jobs:
|
||||
name: showbridge-linux-arm64
|
||||
path: |
|
||||
showbridge_*.tar.gz
|
||||
- name: upload artifacts to release
|
||||
uses: softprops/action-gh-release@v3
|
||||
if: github.ref_type == 'tag' && github.event_name != 'workflow_dispatch' && startsWith(github.ref, 'refs/tags/v')
|
||||
with:
|
||||
draft: true
|
||||
files: showbridge_*.tar.gz
|
||||
windows:
|
||||
runs-on: ubuntu-latest
|
||||
needs: setup_release
|
||||
@@ -121,6 +139,12 @@ jobs:
|
||||
name: showbridge-windows
|
||||
path: |
|
||||
showbridge_*.zip
|
||||
- name: upload artifacts to release
|
||||
uses: softprops/action-gh-release@v3
|
||||
if: github.ref_type == 'tag' && github.event_name != 'workflow_dispatch' && startsWith(github.ref, 'refs/tags/v')
|
||||
with:
|
||||
draft: true
|
||||
files: showbridge_*.zip
|
||||
macos_arm64:
|
||||
runs-on: macos-26
|
||||
needs: setup_release
|
||||
@@ -147,6 +171,12 @@ jobs:
|
||||
name: showbridge-macos-arm64
|
||||
path: |
|
||||
showbridge_*.tar.gz
|
||||
- name: upload artifacts to release
|
||||
uses: softprops/action-gh-release@v3
|
||||
if: github.ref_type == 'tag' && github.event_name != 'workflow_dispatch' && startsWith(github.ref, 'refs/tags/v')
|
||||
with:
|
||||
draft: true
|
||||
files: showbridge_*.tar.gz
|
||||
macos_amd64:
|
||||
runs-on: macos-26-intel
|
||||
needs: setup_release
|
||||
@@ -173,6 +203,12 @@ jobs:
|
||||
name: showbridge-macos-amd64
|
||||
path: |
|
||||
showbridge_*.tar.gz
|
||||
- name: upload artifacts to release
|
||||
uses: softprops/action-gh-release@v3
|
||||
if: github.ref_type == 'tag' && github.event_name != 'workflow_dispatch' && startsWith(github.ref, 'refs/tags/v')
|
||||
with:
|
||||
draft: true
|
||||
files: showbridge_*.tar.gz
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
needs: linux_amd64
|
||||
|
||||
Reference in New Issue
Block a user