Skip to content

Commit

Permalink
New pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Mar 28, 2024
1 parent d465ab2 commit 4f39822
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 7 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"
20 changes: 13 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release pipeline
on:
push:
tags:
- 'v*'
- "v*"

jobs:
release:
Expand All @@ -14,12 +14,18 @@ jobs:
steps:
- name: Clone project
uses: actions/checkout@v4
- name: Prepare environment
with:
fetch-depth: 0
- name: Workaround checkout issues
run: |
echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
- name: Prepare package
run: |
zip -9 -r elvui-$VERSION.zip ElvUI ElvUI_Libraries ElvUI_Options
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/elvui-$VERSION.zip --upload-file elvui-$VERSION.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"
40 changes: 40 additions & 0 deletions .pkgmeta
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package-as: ElvUI

externals:
ElvUI_Libraries/Classic/LibQuestXP: https://github.com/MrFox42/libquestxp
ElvUI_Libraries/Core/Ace3/AceAddon-3.0: https://repos.curseforge.com/wow/ace3/trunk/AceAddon-3.0
ElvUI_Libraries/Core/Ace3/AceComm-3.0: https://repos.curseforge.com/wow/ace3/trunk/AceComm-3.0
ElvUI_Libraries/Core/Ace3/AceConsole-3.0: https://repos.curseforge.com/wow/ace3/trunk/AceConsole-3.0
ElvUI_Libraries/Core/Ace3/AceDB-3.0: https://repos.curseforge.com/wow/ace3/trunk/AceDB-3.0
ElvUI_Libraries/Core/Ace3/AceDBOptions-3.0: https://repos.curseforge.com/wow/ace3/trunk/AceDBOptions-3.0
ElvUI_Libraries/Core/Ace3/AceEvent-3.0: https://repos.curseforge.com/wow/ace3/trunk/AceEvent-3.0
ElvUI_Libraries/Core/Ace3/AceHook-3.0: https://repos.curseforge.com/wow/ace3/trunk/AceHook-3.0
ElvUI_Libraries/Core/Ace3/AceSerializer-3.0: https://repos.curseforge.com/wow/ace3/trunk/AceSerializer-3.0
ElvUI_Libraries/Core/Ace3/AceTimer-3.0: https://repos.curseforge.com/wow/ace3/trunk/AceTimer-3.0
ElvUI_Libraries/Core/AceGUI-3.0-SharedMediaWidgets: https://repos.curseforge.com/wow/ace-gui-3-0-shared-media-widgets/trunk/AceGUI-3.0-SharedMediaWidgets
ElvUI_Libraries/Core/CallbackHandler-1.0: https://repos.curseforge.com/wow/callbackhandler/trunk/CallbackHandler-1.0
ElvUI_Libraries/Core/LibStub: https://repos.curseforge.com/wow/libstub/trunk
ElvUI_Libraries/Core/LibSharedMedia-3.0: https://repos.curseforge.com/wow/libsharedmedia-3-0/trunk/LibSharedMedia-3.0
ElvUI_Libraries/Core/LibCustomGlow-1.0: https://github.com/Stanzilla/LibCustomGlow
ElvUI_Libraries/Core/LibDataBroker: https://github.com/tekkub/libdatabroker-1-1
ElvUI_Libraries/Core/LibTranslit-1.0: https://github.com/Vardex/LibTranslit
ElvUI_Libraries/Core/LibDualSpec-1.0: https://repos.curseforge.com/wow/libdualspec-1-0
ElvUI_Libraries/Core/UTF8: https://repos.curseforge.com/wow/utf8/trunk
ElvUI_Libraries/Core/TaintLess:
url: https://www.townlong-yak.com/addons.git/taintless
commit: default

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

ignore:
- README.md
- CHANGELOG.md
- LICENSE.md
- ThirdPartyNotices.md

move-folders:
ElvUI/ElvUI: ElvUI
ElvUI/ElvUI_Libraries: ElvUI_Libraries
ElvUI/ElvUI_Options: ElvUI_Options

0 comments on commit 4f39822

Please sign in to comment.