update the workflow

This commit is contained in:
Master 2026-06-13 17:50:01 +03:30
parent e3b82c6509
commit 60f83afb02
1 changed files with 30 additions and 0 deletions

30
.github/workflows/build-release.yml vendored Normal file
View File

@ -0,0 +1,30 @@
name: Build Overleaf Release
on:
push:
tags:
- 'v*' # Triggers on any tag starting with 'v'
# Required to allow the GITHUB_TOKEN to create releases and upload assets
permissions:
contents: write
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Create Clean ZIP for Overleaf
run: |
# Zip everything in the current directory (.) without a wrapper folder
# Exclude the .git folder and github workflow files
zip -r Overleaf_Park__ReportTemplate-${{ github.ref_name }}.zip . -x "*.git*" -x "*.github*"
- name: Upload to GitHub Release
uses: softprops/action-gh-release@v2
with:
files: Overleaf_Park__ReportTemplate-${{ github.ref_name }}.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}