diff --git a/.github/workflows/package_release.yml b/.github/workflows/package_release.yml deleted file mode 100644 index c95b043..0000000 --- a/.github/workflows/package_release.yml +++ /dev/null @@ -1,102 +0,0 @@ -name: Package World of Warcraft addon - -on: - workflow_dispatch: - inputs: - version: - description: 'Addon version' - required: true - -env: - CLASSIC_VERSION: 11505 - WRATH_VERSION: 30403 - -jobs: - package: - name: Create zips and tag - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - - name: Get name of addon - id: init - run: | - addon_name=$(ls *.toc) - addon_name=$(basename $addon_name .toc) - tag_name=${addon_name}-${{github.event.inputs.version}} - echo "::set-output name=addon_name::${addon_name}" - echo "::set-output name=tag_name::${tag_name}" - - - name: Make folder for zips - run: | - mkdir -p .releases/${{steps.init.outputs.addon_name}} - rsync -r --exclude '.*' . .releases/${{steps.init.outputs.addon_name}} - - - name: Create mainline zip - run: | - cd .releases - zip -9 -r ${{steps.init.outputs.tag_name}}.zip ${{steps.init.outputs.addon_name}} - cd .. - - - name: Replace TOC version for Classic - run: | - sed -i 's/Interface: *[0-9]\+/Interface: ${{env.CLASSIC_VERSION}}/g' .releases/${{steps.init.outputs.addon_name}}/${{steps.init.outputs.addon_name}}.toc - - - name: Create Classic zip - run: | - cd .releases - zip -9 -r ${{steps.init.outputs.tag_name}}-Classic.zip ${{steps.init.outputs.addon_name}} - cd .. - - - name: Replace TOC version for Wrath - run: | - sed -i 's/Interface: *[0-9]\+/Interface: ${{env.WRATH_VERSION}}/g' .releases/${{steps.init.outputs.addon_name}}/${{steps.init.outputs.addon_name}}.toc - - - name: Create Wrath zip - run: | - cd .releases - zip -9 -r ${{steps.init.outputs.tag_name}}-Wrath.zip ${{steps.init.outputs.addon_name}} - cd .. - - - name: Tag this version - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{steps.init.outputs.tag_name}} - release_name: ${{steps.init.outputs.addon_name}} ${{github.event.inputs.version}} - body: ${{steps.init.outputs.addon_name}} ${{github.event.inputs.version}} - draft: false - prerelease: false - - - name: Add mainline zip to release - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: .releases/${{steps.init.outputs.tag_name}}.zip - asset_name: ${{steps.init.outputs.tag_name}}.zip - asset_content_type: application/zip - - - name: Add Classic zip to release - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: .releases/${{steps.init.outputs.tag_name}}-Classic.zip - asset_name: ${{steps.init.outputs.tag_name}}-Classic.zip - asset_content_type: application/zip - - - name: Add Wrath zip to release - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: .releases/${{steps.init.outputs.tag_name}}-Wrath.zip - asset_name: ${{steps.init.outputs.tag_name}}-Wrath.zip - asset_content_type: application/zip diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..d13a96b --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,41 @@ +# description of this workflow, can be anything you want +name: Package and release + +# we need to let GitHub know _when_ we want to release, typically only when we create a new tag. +# this will target only tags, and not all pushes to the master branch. +# this part can be heavily customized to your liking, like targeting only tags that match a certain word, +# other branches or even pullrequests. +on: + push: + tags: + - '**' + +# a workflow is built up as jobs, and within these jobs are steps +jobs: + + # "release" is a job, you can name it anything you want + release: + + # we can run our steps on pretty much anything, but the "ubuntu-latest" image is a safe bet + runs-on: ubuntu-latest + + # specify the environment variables used by the packager, matching the secrets from the project on GitHub + env: + CF_API_KEY: ${{ secrets.CF_API_KEY }} + WOWI_API_TOKEN: ${{ secrets.WOWI_API_TOKEN }} + WAGO_API_TOKEN: ${{ secrets.WAGO_API_TOKEN }} + GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }} # "GITHUB_TOKEN" is a secret always provided to the workflow + # for your own token, the name cannot start with "GITHUB_" + + # "steps" holds a list of all the steps needed to package and release our AddOn + steps: + + # we first have to clone the AddOn project, this is a required step + - name: Clone project + uses: actions/checkout@v3 + with: + fetch-depth: 0 # gets entire git history, needed for automatic changelogs + + # once cloned, we just run the GitHub Action for the packager project + - name: Package and release + uses: BigWigsMods/packager@v2 \ No newline at end of file diff --git a/.pkgmeta b/.pkgmeta new file mode 100644 index 0000000..d1b9de4 --- /dev/null +++ b/.pkgmeta @@ -0,0 +1,5 @@ +optional-dependencies: + - Ace3 + +ignore: + - .github \ No newline at end of file diff --git a/IncognitoResurrected.toc b/IncognitoResurrected.toc index 1d22c34..18af866 100644 --- a/IncognitoResurrected.toc +++ b/IncognitoResurrected.toc @@ -8,6 +8,12 @@ ## SavedVariables: IncognitoResurrectedDB ## OptionalDeps: Ace3 +## X-Curse-Project-ID: 961634 + +## Interface: 102005 +## Interface-Classic: 11500 +## Interface-Wrath: 30403 + #@no-lib-strip@ embeds.xml #@end-no-lib-strip@ diff --git a/IncognitoResurrected_Vanilla.toc b/IncognitoResurrected_Vanilla.toc deleted file mode 100644 index 7d0a492..0000000 --- a/IncognitoResurrected_Vanilla.toc +++ /dev/null @@ -1,17 +0,0 @@ -## Interface: 11505 -## Title: Incognito Resurrected -## Notes: Adds your name to chat messages -## IconTexture: Interface\Icons\ability_stealth - -## Author: info@starlynk.net, original author: daniel@pew.cc, nyyr -## Version: 1.0 -## SavedVariables: IncognitoResurrectedDB -## OptionalDeps: Ace3 - -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ - -IncognitoResurrected_enUS.lua -IncognitoResurrected_deDE.lua -IncognitoResurrected.lua diff --git a/IncognitoResurrected_Wrath.toc b/IncognitoResurrected_Wrath.toc deleted file mode 100644 index 19d3c04..0000000 --- a/IncognitoResurrected_Wrath.toc +++ /dev/null @@ -1,17 +0,0 @@ -## Interface: 30400 -## Title: Incognito Resurrected -## Notes: Adds your name to chat messages -## IconTexture: Interface\Icons\ability_stealth - -## Author: info@starlynk.net, original author: daniel@pew.cc, nyyr -## Version: 1.0 -## SavedVariables: IncognitoResurrectedDB -## OptionalDeps: Ace3 - -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ - -IncognitoResurrected_enUS.lua -IncognitoResurrected_deDE.lua -IncognitoResurrected.lua