From fc951497db926ac87cc44dfc1fa17388a3f7b83c Mon Sep 17 00:00:00 2001 From: Ben Carter Date: Thu, 22 Aug 2024 19:56:14 -0400 Subject: [PATCH] Added new shared build-release --- .github/workflows/build-release.yml | 24 +++++++++++++++++++ .../core_build.yml => core_build.yml | 0 release.yml | 17 +++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 .github/workflows/build-release.yml rename .github/workflows/core_build.yml => core_build.yml (100%) create mode 100644 release.yml diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml new file mode 100644 index 0000000..76dbd33 --- /dev/null +++ b/.github/workflows/build-release.yml @@ -0,0 +1,24 @@ +name: Build And Release +on: + push: + branches: + - 'araxia-main' + - 'master' + pull_request: + branches: + - 'araxia-main' + - 'master' +jobs: + build-release: + runs-on: ubuntu-latest + container: + image: ghcr.io/araxiaonline/ac-wotlk-worldserver-devcontainer:latest + options: --user root + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + steps: + - name: build + uses: araxiaonline/share-gh-workflows/.github/actions/build-tag-release@main + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + tag_release: true diff --git a/.github/workflows/core_build.yml b/core_build.yml similarity index 100% rename from .github/workflows/core_build.yml rename to core_build.yml diff --git a/release.yml b/release.yml new file mode 100644 index 0000000..ae52752 --- /dev/null +++ b/release.yml @@ -0,0 +1,17 @@ +name: tag-release +on: + workflow_run: + workflows: ["core-build"] + types: + - completed +jobs: + release-on-push: + runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + steps: + - name: Release on Push + uses: rymndhng/release-on-push-action@master + with: + bump_version_scheme: minor