From dfe12fc9b515f0b919523598bc7865852697e3a9 Mon Sep 17 00:00:00 2001 From: Master Date: Sat, 13 Jun 2026 17:50:01 +0330 Subject: [PATCH] update the workflow --- .github/workflows/build-release.yml | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/build-release.yml diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml new file mode 100644 index 0000000..8a6d8dc --- /dev/null +++ b/.github/workflows/build-release.yml @@ -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 }} \ No newline at end of file