From bd8e6d6376823ff74f42a19fc1d5d9b10bc3e8b3 Mon Sep 17 00:00:00 2001 From: Draiscor Date: Sat, 13 Dec 2025 10:53:07 +0000 Subject: [PATCH] Cleaned up gitignore, and updated the action to have permission to push the build artifact to the release --- .github/workflows/package-addon.yml | 12 ++++----- .gitignore | 41 +---------------------------- 2 files changed, 6 insertions(+), 47 deletions(-) diff --git a/.github/workflows/package-addon.yml b/.github/workflows/package-addon.yml index f59ba6b..0f5c1e9 100644 --- a/.github/workflows/package-addon.yml +++ b/.github/workflows/package-addon.yml @@ -1,29 +1,27 @@ name: Package Addon for Release -# Trigger this action only when a new Release is created in the GitHub UI on: release: - types: [created, edited] + types: [created] jobs: build: runs-on: ubuntu-latest + # Make sure the action has permission to push to the release attachments + permissions: + contents: write + steps: - # Step 1: Check out the code from the repo - name: Checkout Code uses: actions/checkout@v4 - # Step 2: Create the folder structure and zip it - # We create a folder named 'FishSwap' so that when users extract it, - # it is already inside the correct directory for their Interface/AddOns/ folder. - name: Bundle and Zip run: | mkdir FishSwap cp FishSwap.lua FishSwap.toc README.md FishSwap/ zip -r FishSwap.zip FishSwap - # Step 3: Upload the zip file to the Release page automatically - name: Upload Release Asset uses: softprops/action-gh-release@v2 if: startsWith(github.ref, 'refs/tags/') diff --git a/.gitignore b/.gitignore index 6fd0a37..6241219 100644 --- a/.gitignore +++ b/.gitignore @@ -1,41 +1,2 @@ -# Compiled Lua sources -luac.out - -# luarocks build files -*.src.rock +FishSwap/ *.zip -*.tar.gz - -# Object files -*.o -*.os -*.ko -*.obj -*.elf - -# Precompiled Headers -*.gch -*.pch - -# Libraries -*.lib -*.a -*.la -*.lo -*.def -*.exp - -# Shared objects (inc. Windows DLLs) -*.dll -*.so -*.so.* -*.dylib - -# Executables -*.exe -*.out -*.app -*.i*86 -*.x86_64 -*.hex -