From 8d845e470780bc806422f683fc93c24789e051d9 Mon Sep 17 00:00:00 2001 From: Nicholas Anderson Date: Thu, 17 Oct 2024 22:58:54 -0400 Subject: [PATCH] Add Github Action for releases --- .github/workflows/release.yml | 27 +++++++++++++++++++++++++++ .pkgmeta | 6 ++++++ AtlasQuest_Mainline.toc | 2 +- AtlasQuest_Vanilla.toc | 2 +- 4 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/release.yml create mode 100644 .pkgmeta diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..2540d52 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,27 @@ +name: Release Addon + +on: + push: + tags: + - '**' + +env: + GITHUB_OAUTH: ${{ secrets.GITHUB_TOKEN }} + +jobs: + release: + runs-on: ubuntu-latest + steps: + + - name: Clone project + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: kemayo/actions-recent-changelog@v1 + with: + input: CHANGELOG.md + output: RECENT_CHANGES.md + + - name: Package and release + uses: BigWigsMods/packager@v2 diff --git a/.pkgmeta b/.pkgmeta new file mode 100644 index 0000000..cb8d0c2 --- /dev/null +++ b/.pkgmeta @@ -0,0 +1,6 @@ +manual-changelog: + filename: RECENT_CHANGES.md + markup-type: markdown + +ignore: + - RECENT_CHANGES.md diff --git a/AtlasQuest_Mainline.toc b/AtlasQuest_Mainline.toc index db7967e..1e6a34c 100644 --- a/AtlasQuest_Mainline.toc +++ b/AtlasQuest_Mainline.toc @@ -16,7 +16,7 @@ ## Notes-esES: Muestra las misiones para mazmorras y campos de batalla. ## Notes-esMX: Muestra las misiones para mazmorras y campos de batalla. ## Author: AtlasQuest Team -## Version: 5.2.1 +## Version: @project-version@ ## X-Website: https://github.com/thandrenn/AtlasQuest ## X-Category: Quests ## X-License: GPLv2 diff --git a/AtlasQuest_Vanilla.toc b/AtlasQuest_Vanilla.toc index 623494c..9fff509 100644 --- a/AtlasQuest_Vanilla.toc +++ b/AtlasQuest_Vanilla.toc @@ -16,7 +16,7 @@ ## Notes-esES: Muestra las misiones para mazmorras y campos de batalla. ## Notes-esMX: Muestra las misiones para mazmorras y campos de batalla. ## Author: AtlasQuest Team -## Version: 5.2.1 +## Version: @project-version@ ## X-Website: https://github.com/thandrenn/AtlasQuest ## X-Category: Quests ## X-License: GPLv2