Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions .github/workflows/package-addon.yml
Original file line number Diff line number Diff line change
@@ -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/')
Expand Down
41 changes: 1 addition & 40 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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