ouch/.github/workflows/draft-release-automatic-trigger.yml
João Marcos P. Bezerra 17499d7b5d CI: tweak: reference reusable workflow locally
this allows non-main branches to run their own latest workflows, and
helps with forks too
2024-11-17 20:45:49 -03:00

36 lines
877 B
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
upload_artifacts: true
automated-draft-release:
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
needs: build-artifacts-and-run-tests
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download artifacts
uses: dawidd6/action-download-artifact@v3
with:
path: artifacts
- name: Package release assets
run: scripts/package-release-assets.sh
- name: Create release
uses: softprops/action-gh-release@v2
with:
draft: true
files: release/ouch-*