From ff85b4f2e0822ddf92661a520a0fb49fcce6b0a7 Mon Sep 17 00:00:00 2001 From: Simon Jern Date: Fri, 12 Jul 2024 22:55:20 +0200 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0e7daa9..aa61290 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,6 +40,15 @@ jobs: name: g-calendar-fetcher-minified path: dist/g-calendar-fetcher.min.js + - name: Commit dist files to main + if: startsWith(github.event.ref, 'refs/tags/v') # Only run for version tags + run: | + git config --local user.name "GitHub Actions" + git config --local user.email "actions@github.com" + git add dist/g-calendar-fetcher.min.js + git commit -m "Add minified file for version ${{ github.ref_name }}" + git push origin main + - name: Create Release if: startsWith(github.event.ref, 'refs/tags/v') # Only run for tags id: create_release @@ -52,7 +61,7 @@ jobs: draft: false prerelease: false body: | - Release of version ${{ github.ref }} + Release of version ${{ github.ref_name }} ## Breaking changes - **[v0.4.0]** Events are now sorted the other way around. Future events are now at the top.