auto zip added
This commit is contained in:
parent
da574b1728
commit
cf0a4af1c8
|
|
@ -0,0 +1,26 @@
|
|||
name: Build Overleaf Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*' # Triggers on any tag starting with 'v'
|
||||
|
||||
jobs:
|
||||
build-and-release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Create Clean ZIP for Overleaf
|
||||
run: |
|
||||
# Zip everything in the current directory (.) without a wrapper folder
|
||||
# Exclude the .git folder and any github/gitea workflow files
|
||||
zip -r Overleaf_Park__ReportTemplate-${{ gitea.ref_name }}.zip . -x "*.git*" -x "*.gitea*"
|
||||
|
||||
- name: Upload to Gitea Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
files: Overleaf_Park__ReportTemplate-${{ gitea.ref_name }}.zip
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Loading…
Reference in New Issue