Skip to content

Commit

Permalink
Merge branch 'feature/toc-bump' into release/v0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneWanderer-GH committed Apr 22, 2021
2 parents 5a9c28a + e404461 commit fe47a97
Show file tree
Hide file tree
Showing 6 changed files with 126 additions and 80 deletions.
31 changes: 12 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,16 @@ jobs:

- uses: actions/checkout@v1

- name: Set env with Curse Forge API key
shell: bash
run: sudo echo "::set-env name=CF_API_KEY::${{ secrets.CF_API_KEY }}"

- name: Store Curse Forge API key into a .env file
shell: bash
run: sudo echo "CF_API_KEY=${CF_API_KEY}" > ./.env && ls -al
working-directory: ./.release

- name: Build Retail
run: sudo bash ./release.sh -l
shell: bash
working-directory: ./.release

- name: Build Classic
run: sudo bash ./release.sh -l -g 1.13.3
shell: bash
working-directory: ./.release

- uses: BigWigsMods/packager@master
name: Build Retail and upload to CurseForge
with:
args: -l -g retail

- uses: BigWigsMods/packager@master
name: Build Classic and upload to CurseForge
with:
args: -l -g classic

env:
CF_API_KEY: ${{ secrets.CF_API_KEY }}

96 changes: 96 additions & 0 deletions .github/workflows/feature-branch-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
name: Feature-branch-build

on:
push:
branches:
- 'feature/**'
# branches-ignore:
# - 'main'
# - 'master'
# - 'releases/**'
# - 'release/**'

jobs:
build-classic:

runs-on: ubuntu-latest

steps:
#- name: Dump GitHub context
# env:
# GITHUB_CONTEXT: ${{ toJSON(github) }}
# run: echo "$GITHUB_CONTEXT"

- uses: actions/checkout@v1

- uses: BigWigsMods/packager@master
name: Build Classic
with:
args: -r ./zip -z -d -g classic

- name: Name artifact with git hash
run: echo 'ARTIFACT_NAME=Classic-${{ github.event.repository.name }}-'$(git -C ./zip show --no-patch --format="%H") >> $GITHUB_ENV

- name: Store built zip
uses: actions/upload-artifact@v2
with:
name : ${{ env.ARTIFACT_NAME }}
path: ./zip/


env:
CF_API_KEY: ${{ secrets.CF_API_KEY }}

deploy-classic:
needs: build-classic
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- name: Get artifact
uses: actions/download-artifact@v2
with:
name: ${{ env.ARTIFACT_NAME }}
path: ./zip/

build-retail:

runs-on: ubuntu-latest

steps:
#- name: Dump GitHub context
# env:
# GITHUB_CONTEXT: ${{ toJSON(github) }}
# run: echo "$GITHUB_CONTEXT"

- uses: actions/checkout@v1

- uses: BigWigsMods/packager@master
name: Build Retail
with:
args: -r ./zip -z -d -g retail

- name: Name artifact with git hash
run: echo 'ARTIFACT_NAME=Retail-${{ github.event.repository.name }}-'$(git -C ./zip show --no-patch --format="%H") >> $GITHUB_ENV

- name: Store built zip
uses: actions/upload-artifact@v2
with:
name : ${{ env.ARTIFACT_NAME }}
path: ./zip/


env:
CF_API_KEY: ${{ secrets.CF_API_KEY }}

deploy-retail:
needs: build-retail
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- name: Get artifact
uses: actions/download-artifact@v2
with:
name: ${{ env.ARTIFACT_NAME }}
path: ./zip/
51 changes: 0 additions & 51 deletions .github/workflows/test_build.yml

This file was deleted.

10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
sublime*

.idea/ElvUI_CoolLine_Wrapper.iml

.idea/misc.xml

.idea/modules.xml

.idea/vcs.xml

.idea/workspace.xml
9 changes: 5 additions & 4 deletions ElvUI_CoolLine_Wrapper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ end
function ElvUI_CoolLine_Wrapper:PLAYER_ENTERING_WORLD()
------------------------------------------------
-- ElvUI_CoolLine_Wrapper:logger("PLAYER_ENTERING_WORLD")
self:UnregisterEvent("PLAYER_ENTERING_WORLD")
--self:UnregisterEvent("PLAYER_ENTERING_WORLD")
self.CreateMover()
end

Expand All @@ -42,9 +42,9 @@ function ElvUI_CoolLine_Wrapper:CreateMover()
if not E.CreatedMovers[MoverName] then
if CoolLine.MainFrame then
CoolLine.MainFrame:SetMovable(false)
ElvUI_CoolLine_Wrapper:logger('Making CoolLine frame NOT movable (for ElvUI movers to work !)')
E:CreateMover(CoolLine, MoverName, L[MoverName], nil, nil, nil, 'ALL,SOLO,ACTIONSBARS,PARTY,ARENA,RAID')
--ElvUI_CoolLine_Wrapper:logger('CreateMover-Mover created !!!!!!!!!!!!!!')
--ElvUI_CoolLine_Wrapper:logger('Making CoolLine frame NOT movable (for ElvUI movers to work !)')
E:CreateMover(CoolLine.MainFrame, MoverName, L[MoverName], nil, nil, nil, 'ALL,SOLO,ACTIONSBARS,PARTY,ARENA,RAID')
ElvUI_CoolLine_Wrapper:logger('CreateMover-Mover created !')
else
-- find a way to postpone creation later ?
ElvUI_CoolLine_Wrapper:logger('CreateMover- CoolLine frame not found/valid ... Find a way to postpone creation later ?')
Expand Down Expand Up @@ -248,6 +248,7 @@ function ElvUI_CoolLine_Wrapper:Initialize()
EP:RegisterPlugin(addonName, ElvUI_CoolLine_Wrapper.InsertOptions)

ElvUI_CoolLine_Wrapper:logger('Initialize-Call update')
--ElvUI_CoolLine_Wrapper:CreateMover()
ElvUI_CoolLine_Wrapper:Update()
end

Expand Down
9 changes: 3 additions & 6 deletions ElvUI_CoolLine_Wrapper.toc
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#@retail@
## Interface: 80000
#@end-retail@
#@non-retail@
# ## Interface: 11303
#@end-non-retail@
## Interface: 11307
## Interface-Retail: 90005
## Interface-Classic: 11307
## Version: @project-version@

## Title: |cff1784d1ElvUI|r |cff00b3ffCoolLine |cff00ffdaWrapper|r by LoneWanderer-GH
Expand Down

0 comments on commit fe47a97

Please sign in to comment.