mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-09-10 07:29:25 +00:00
add release creation and artificat upload
This commit is contained in:
@@ -31,6 +31,12 @@ jobs:
|
|||||||
- name: set commit
|
- name: set commit
|
||||||
id: set_commit
|
id: set_commit
|
||||||
run: echo "short_commit=${GITHUB_SHA::7}" >> $GITHUB_OUTPUT
|
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:
|
linux_amd64:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
needs: setup_release
|
needs: setup_release
|
||||||
@@ -59,6 +65,12 @@ jobs:
|
|||||||
name: showbridge-linux-amd64
|
name: showbridge-linux-amd64
|
||||||
path: |
|
path: |
|
||||||
showbridge_*.tar.gz
|
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:
|
linux_arm64:
|
||||||
runs-on: ubuntu-24.04-arm
|
runs-on: ubuntu-24.04-arm
|
||||||
needs: setup_release
|
needs: setup_release
|
||||||
@@ -87,6 +99,12 @@ jobs:
|
|||||||
name: showbridge-linux-arm64
|
name: showbridge-linux-arm64
|
||||||
path: |
|
path: |
|
||||||
showbridge_*.tar.gz
|
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:
|
windows:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: setup_release
|
needs: setup_release
|
||||||
@@ -121,6 +139,12 @@ jobs:
|
|||||||
name: showbridge-windows
|
name: showbridge-windows
|
||||||
path: |
|
path: |
|
||||||
showbridge_*.zip
|
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:
|
macos_arm64:
|
||||||
runs-on: macos-26
|
runs-on: macos-26
|
||||||
needs: setup_release
|
needs: setup_release
|
||||||
@@ -147,6 +171,12 @@ jobs:
|
|||||||
name: showbridge-macos-arm64
|
name: showbridge-macos-arm64
|
||||||
path: |
|
path: |
|
||||||
showbridge_*.tar.gz
|
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:
|
macos_amd64:
|
||||||
runs-on: macos-26-intel
|
runs-on: macos-26-intel
|
||||||
needs: setup_release
|
needs: setup_release
|
||||||
@@ -173,6 +203,12 @@ jobs:
|
|||||||
name: showbridge-macos-amd64
|
name: showbridge-macos-amd64
|
||||||
path: |
|
path: |
|
||||||
showbridge_*.tar.gz
|
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:
|
docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: linux_amd64
|
needs: linux_amd64
|
||||||
|
|||||||
Reference in New Issue
Block a user