From 4f398225b4561a2e6639d88342a9c41d34f031cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Thu, 28 Mar 2024 19:09:09 +0100 Subject: [PATCH] New pipeline --- .github/workflows/dev.yml | 32 ++++++++++++++++++++++++++++ .github/workflows/release.yml | 20 ++++++++++++------ .pkgmeta | 40 +++++++++++++++++++++++++++++++++++ 3 files changed, 85 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/dev.yml create mode 100644 .pkgmeta diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml new file mode 100644 index 0000000000..ba3ba9b1e2 --- /dev/null +++ b/.github/workflows/dev.yml @@ -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" \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 97137c1676..7e7b7fd4a6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,7 @@ name: Release pipeline on: push: tags: - - 'v*' + - "v*" jobs: release: @@ -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" diff --git a/.pkgmeta b/.pkgmeta new file mode 100644 index 0000000000..d88ca08f40 --- /dev/null +++ b/.pkgmeta @@ -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 \ No newline at end of file