Skip to content

Commit 7f37237

Browse files
Try to restrict builds when tags are present
1 parent 8692c5d commit 7f37237

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/addon-docs.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,29 @@ jobs:
1212
env:
1313
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
1414
runs-on: ubuntu-latest
15+
if: "!startsWith(github.ref, 'refs/tags/')"
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
- uses: pnpm/action-setup@v4
21+
with:
22+
version: 9
23+
- uses: actions/setup-node@v4
24+
with:
25+
node-version: 18
26+
cache: pnpm
27+
- name: Install Dependencies
28+
run: pnpm install --no-lockfile
29+
- name: Deploy Docs
30+
run: |
31+
pnpm ember deploy production
32+
33+
tag-build:
34+
env:
35+
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
36+
runs-on: ubuntu-latest
37+
if: startsWith(github.ref, 'refs/tags/')
1538
steps:
1639
- uses: actions/checkout@v4
1740
with:

0 commit comments

Comments
 (0)