Trigger workflow on release
Build & Attach Release / Build and Attach ZIP (release) Successful in 8s

This commit is contained in:
2026-07-11 17:25:02 +02:00 Unverified
parent 45e5d5d3a3
commit 2182a07ea1
+7 -9
View File
@@ -1,13 +1,12 @@
name: Build & Release
name: Build & Attach Release
on:
push:
tags:
- '*'
release:
types: [published]
jobs:
build-and-release:
name: Build and Create Release
name: Build and Attach ZIP
runs-on: ubuntu-latest
steps:
@@ -27,15 +26,14 @@ jobs:
- name: Create ZIP archive
run: |
# Zipping from inside the dist folder ensures 'dist' isn't the root folder in the zip
cd dist
zip -r ../lirkab-site.zip .
- name: Create Release & Attach ZIP
- name: Attach ZIP to Release
uses: softprops/action-gh-release@v2
with:
name: "Release ${{ github.ref_name }}"
body: "Automated release of the Lirkab static site."
name: ${{ github.event.release.tag_name }}
body: ${{ github.event.release.body || 'Automated release of the Lirkab static site.' }}
files: lirkab-site.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}