ouch/.github/workflows/draft-release-automatic-trigger.yml
2025-04-18 03:20:31 -03:00

38 lines
1.0 KiB
YAML

name: Automatic trigger draft release
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
jobs:
call-workflow-build-artifacts-and-run-tests:
uses: ./.github/workflows/build-artifacts-and-run-tests.yml
with:
matrix_all_combinations: true
artifact_upload_mode: with_default_features
automated-draft-release:
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
needs: call-workflow-build-artifacts-and-run-tests
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download artifacts
uses: dawidd6/action-download-artifact@v6
with:
path: downloaded_artifacts
workflow: ./.github/workflows/build-artifacts-and-run-tests.yml
name: ouch-*
- name: Package release assets
run: scripts/package-release-assets.sh
- name: Create release
uses: softprops/action-gh-release@v2
with:
draft: true
files: output_assets/ouch-*