ouch/.github/workflows/manual-trigger-draft-release.yml
2024-11-17 20:45:49 -03:00

37 lines
1022 B
YAML

# we have two workflows for releases, this is the manual one to be triggered
# in the Actions tab in the repository
#
# the automatic one runs in another workflow and checks for tag pushes
name: manual-trigger-draft-release
on:
workflow_dispatch:
inputs:
run_id:
description: Run id of the action run to pull artifacts from
required: true
jobs:
create-draft-release-from-manual-trigger:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download artifacts
uses: dawidd6/action-download-artifact@v3
with:
path: artifacts
workflow: build-and-test.yml
run_id: ${{ github.event.inputs.run_id }}
- name: Package release assets
run: scripts/package-release-assets.sh
- name: Create release
uses: softprops/action-gh-release@v2
with:
draft: true
name: manual release ${{ github.event.inputs.run_id }}
files: release/ouch-*