Auto-create release on tag push

This commit is contained in:
yeasy
2026-03-25 22:53:05 -07:00
parent 51ee7f72cd
commit 6dbae98f8e

View File

@@ -1,8 +1,9 @@
name: Build PDF on Release name: Build PDF on Release
on: on:
release: push:
types: [published] tags:
- 'v*'
workflow_dispatch: workflow_dispatch:
permissions: permissions:
@@ -34,10 +35,11 @@ jobs:
- name: Build PDF - name: Build PDF
run: mdpress build --format pdf --output docker_practice.pdf run: mdpress build --format pdf --output docker_practice.pdf
- name: Upload PDF to Release - name: Create Release and upload PDF
if: github.event_name == 'release' if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
with: with:
generate_release_notes: true
files: docker_practice.pdf files: docker_practice.pdf
- name: Upload PDF as artifact - name: Upload PDF as artifact