Skip to content

Commit

Permalink
Pipeline overhaul
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Apr 13, 2024
1 parent 4ed43ff commit 4ab7f9d
Show file tree
Hide file tree
Showing 61 changed files with 3,405 additions and 8,350 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Development pipeline

on:
push:
branches:
- "*"
- "!feature/"

jobs:
release:
name: Publish development build to CDN
runs-on: ubuntu-latest
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
steps:
- name: Clone project
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Workaround checkout issues
run: |
git fetch --tags --force
- name: Create Package
uses: BigWigsMods/packager@v2
with:
args: -n "{package-name}-$GITHUB_REF_NAME-{project-version}"
- name: Get package name
run: |
echo "PACKAGE=$(find .release -type f -name *.zip -printf "%f\n")" >> $GITHUB_ENV
- name: Publish package
run: |
curl https://api.tukui.org/v1/upload/dev/$PACKAGE --upload-file .release/$PACKAGE -H "X-Tukui-Key: $DEPLOY_KEY" -H "Content-Type: application/zip"
15 changes: 12 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,18 @@ jobs:
steps:
- name: Clone project
uses: actions/checkout@v4
- name: Prepare package
with:
fetch-depth: 0
- name: Workaround checkout issues
run: |
zip -9 -r tukui-$VERSION.zip Tukui
git fetch --tags --force
- name: Create Package
uses: BigWigsMods/packager@v2
with:
args: -n "{package-name}-{project-version}"
- name: Get package name
run: |
echo "PACKAGE=$(find .release -type f -name *.zip -printf "%f\n")" >> $GITHUB_ENV
- name: Publish package
run: |
curl https://api.tukui.org/v1/upload/tukui-$GITHUB_REF_NAME.zip --upload-file tukui-$GITHUB_REF_NAME.zip -H "X-Tukui-Key: $DEPLOY_KEY" -H "Content-Type: application/zip"
curl https://api.tukui.org/v1/upload/$PACKAGE --upload-file .release/$PACKAGE -H "X-Tukui-Key: $DEPLOY_KEY" -H "Content-Type: application/zip"
31 changes: 31 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Thumbs.db
Desktop.ini
.DS_Store
.vscode

# Libraries
Tukui/Libs/*
!Tukui/Libs/LibAnim
!Tukui/Libs/LibDeflate
!Tukui/Libs/LibHealComm-4.0
!Tukui/Libs/LibSerialize
!Tukui/Libs/oUF
!Tukui/Libs/oUF_ArcaneCharge
!Tukui/Libs/oUF_Atonement
!Tukui/Libs/oUF_AuraBars
!Tukui/Libs/oUF_AuraTrack
!Tukui/Libs/oUF_CombatFeedback
!Tukui/Libs/oUF_ComboPointsBar
!Tukui/Libs/oUF_DruidMana
!Tukui/Libs/oUF_EnergyManaRegen
!Tukui/Libs/oUF_FloatingCombatFeedback
!Tukui/Libs/oUF_HarmonyBar
!Tukui/Libs/oUF_HolyPowerBar
!Tukui/Libs/oUF_QuestIcon
!Tukui/Libs/oUF_RaidDebuffs
!Tukui/Libs/oUF_Retail
!Tukui/Libs/oUF_SoulShards
!Tukui/Libs/oUF_Trinkets

# Pipelines
.release
31 changes: 31 additions & 0 deletions .pkgmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package-as: Tukui

externals:
Tukui/Libs/CallbackHandler-1.0: https://repos.curseforge.com/wow/callbackhandler/trunk/CallbackHandler-1.0
Tukui/Libs/LibStub: https://repos.curseforge.com/wow/libstub/trunk
Tukui/Libs/SortBags: https://github.com/shirsig/SortBags
Tukui/Libs/SortBags_Vanilla: https://github.com/shirsig/SortBags-vanilla
Tukui/Libs/TaintLess:
url: https://www.townlong-yak.com/addons.git/taintless
commit: default

manual-changelog:
filename: CHANGELOG.md
markup-type: markdown

ignore:
- "*.md"
- "*.textile"
- Tukui/Libs/LibStub/tests

plain-copy:
- Tukui/Config
- Tukui/Core
- Tukui/Licenses
- Tukui/Locales
- Tukui/Medias
- Tukui/Modules
- Tukui/Themes

move-folders:
Tukui/Tukui: Tukui
15 changes: 12 additions & 3 deletions Tukui/Core/Init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,17 @@ Engine[2] = {}
Engine[3] = {}
Engine[4] = {}

local function ParseVersionString()
local version = strsub(GetAddOnMetadata(AddOn, 'Version'), 2)
if not strfind(version, '%-') then
return tonumber(version), version
elseif strfind(version, 'project%-version') then
return 99999, 'Development'
else
return 99999, version
end
end

function Engine:unpack()
return self[1], self[2], self[3], self[4]
end
Expand All @@ -36,15 +47,13 @@ Engine[1].MyLevel = UnitLevel("player")
Engine[1].MyFaction = select(2, UnitFactionGroup("player"))
Engine[1].MyRace = select(2, UnitRace("player"))
Engine[1].MyRealm = GetRealmName()
Engine[1].Version = GetAddOnMetadata(AddOn, "Version")
Engine[1].VersionNumber = tonumber(Engine[1].Version)
Engine[1].VersionNumber, Engine[1].Version = ParseVersionString()
Engine[1].WoWPatch, Engine[1].WoWBuild, Engine[1].WoWPatchReleaseDate, Engine[1].TocVersion = GetBuildInfo()
Engine[1].WoWBuild = tonumber(Engine[1].WoWBuild)
Engine[1].Hider = CreateFrame("Frame", "TukuiHider", UIParent)
Engine[1].PetHider = CreateFrame("Frame", "TukuiPetHider", UIParent, "SecureHandlerStateTemplate")
Engine[1].OffScreen = CreateFrame("Frame", "TukuiOffScreen", UIParent)


SLASH_RELOADUI1 = "/rl"
SlashCmdList.RELOADUI = ReloadUI

Expand Down
212 changes: 0 additions & 212 deletions Tukui/Libs/CallbackHandler-1.0/CallbackHandler-1.0.lua

This file was deleted.

4 changes: 0 additions & 4 deletions Tukui/Libs/CallbackHandler-1.0/CallbackHandler-1.0.xml

This file was deleted.

Loading

0 comments on commit 4ab7f9d

Please sign in to comment.