From 7f37237a28ce4746200cab661dd6ccf1f9e26fe3 Mon Sep 17 00:00:00 2001 From: Robert Wagner Date: Thu, 5 Dec 2024 20:13:58 -0500 Subject: [PATCH] Try to restrict builds when tags are present --- .github/workflows/addon-docs.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/addon-docs.yml b/.github/workflows/addon-docs.yml index 946532414..dad7b2761 100644 --- a/.github/workflows/addon-docs.yml +++ b/.github/workflows/addon-docs.yml @@ -12,6 +12,29 @@ jobs: env: DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }} runs-on: ubuntu-latest + if: "!startsWith(github.ref, 'refs/tags/')" + steps: + - uses: actions/checkout@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + - uses: pnpm/action-setup@v4 + with: + version: 9 + - uses: actions/setup-node@v4 + with: + node-version: 18 + cache: pnpm + - name: Install Dependencies + run: pnpm install --no-lockfile + - name: Deploy Docs + run: | + pnpm ember deploy production + + tag-build: + env: + DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }} + runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/') steps: - uses: actions/checkout@v4 with: