From 6dbae98f8eb96196a9c229e7560a4c9099517b40 Mon Sep 17 00:00:00 2001 From: yeasy Date: Wed, 25 Mar 2026 22:53:05 -0700 Subject: [PATCH] Auto-create release on tag push --- .github/workflows/release-pdf.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-pdf.yml b/.github/workflows/release-pdf.yml index 8707305..c4d5a65 100644 --- a/.github/workflows/release-pdf.yml +++ b/.github/workflows/release-pdf.yml @@ -1,8 +1,9 @@ name: Build PDF on Release on: - release: - types: [published] + push: + tags: + - 'v*' workflow_dispatch: permissions: @@ -34,10 +35,11 @@ jobs: - name: Build PDF run: mdpress build --format pdf --output docker_practice.pdf - - name: Upload PDF to Release - if: github.event_name == 'release' + - name: Create Release and upload PDF + if: startsWith(github.ref, 'refs/tags/') uses: softprops/action-gh-release@v2 with: + generate_release_notes: true files: docker_practice.pdf - name: Upload PDF as artifact