mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-12-02 07:24:51 +00:00
[GHA] Add manual dispatch with ref input and artifact upload to tarball workflow
This commit is contained in:
1 parent
9750524893
commit
2b4be62674
1 file changed
+15
@@ -5,6 +5,12 @@ on:
|
||||
branches:
|
||||
- 'v1.10'
|
||||
- 'v1.11'
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
ref:
|
||||
description: 'Branch, tag, or SHA to build tarball from'
|
||||
required: true
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
source:
|
||||
@@ -19,6 +25,7 @@ jobs:
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
path: 'code'
|
||||
ref: ${{ inputs.ref || github.ref }}
|
||||
|
||||
- name: Checkout reusable actions
|
||||
uses: actions/checkout@v6
|
||||
@@ -71,6 +78,7 @@ jobs:
|
||||
tar -tvzf source_archives.tar.gz
|
||||
|
||||
- name: Upload source tarball to remote host
|
||||
if: github.event_name != 'workflow_dispatch'
|
||||
uses: ./actions/.github/actions/teleport
|
||||
with:
|
||||
EXEC_COMMANDS_PRE: 'mkdir -p /var/www/freeswitch/public/release/${{ github.ref_name }}/${{ github.run_id }}-${{ github.run_number }}'
|
||||
@@ -81,3 +89,10 @@ jobs:
|
||||
PROXY_URL: ${{ secrets.PROXY_URL }}
|
||||
TOKEN: ${{ secrets.TELEPORT_TOKEN }}
|
||||
USERNAME: ${{ secrets.USERNAME }}
|
||||
|
||||
- name: Upload source tarball as artifact
|
||||
if: github.event_name == 'workflow_dispatch'
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: source_archives
|
||||
path: source_archives.tar.gz
|
||||
Reference in new issue
Block a user