Skip to content

Commit bf7f4da

Browse files
committed
ci: fix semantic release
1 parent 56c6662 commit bf7f4da

File tree

1 file changed

+24
-25
lines changed

1 file changed

+24
-25
lines changed

.github/workflows/gh-pages.yml

+24-25
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ jobs:
6565
run: npm ci
6666

6767
- name: Semantic Release 🚀
68-
uses: cycjimmy/semantic-release-action@v4
69-
id: semantic
70-
env:
71-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
73-
with:
74-
semantic_version: 23
68+
uses: cycjimmy/semantic-release-action@v4
69+
id: semantic
70+
env:
71+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
73+
with:
74+
semantic_version: 23
7575

7676
- name: Build artifacts 🏗️
7777
run: npm run build
@@ -93,13 +93,13 @@ jobs:
9393
load: true
9494

9595
- name: Build docker gis-client image (version)
96-
if: steps.semantic.outputs.new_release_published == 'true'
97-
uses: docker/build-push-action@v5
98-
with:
99-
context: .
100-
tags: |
101-
${{ env.DOCKER_REGISTRY }}/shogun-gis-client-docs:${{ steps.semantic.outputs.new_release_version }}
102-
load: true
96+
if: steps.semantic.outputs.new_release_published == 'true'
97+
uses: docker/build-push-action@v5
98+
with:
99+
context: .
100+
tags: |
101+
${{ env.DOCKER_REGISTRY }}/shogun-gis-client-docs:${{ steps.semantic.outputs.new_release_version }}
102+
load: true
103103

104104
- name: Push docker gis-client image to Nexus (latest) 📠
105105
run: |
@@ -120,20 +120,19 @@ jobs:
120120
load: true
121121

122122
- name: Build docker admin-client image (version)
123-
if: steps.semantic.outputs.new_release_published == 'true'
124-
uses: docker/build-push-action@v5
125-
with:
126-
context: .
127-
tags: |
128-
${{ env.DOCKER_REGISTRY }}/shogun-admin-client-docs:${{ steps.semantic.outputs.new_release_version }}
129-
load: true
123+
if: steps.semantic.outputs.new_release_published == 'true'
124+
uses: docker/build-push-action@v5
125+
with:
126+
context: .
127+
tags: |
128+
${{ env.DOCKER_REGISTRY }}/shogun-admin-client-docs:${{ steps.semantic.outputs.new_release_version }}
129+
load: true
130130

131131
- name: Push docker admin-client image to Nexus (latest) 📠
132132
run: |
133133
docker push ${{ env.DOCKER_REGISTRY }}/shogun-admin-client-docs:latest
134134
135135
- name: Push docker admin-client image to Nexus (version)
136-
if: steps.semantic.outputs.new_release_published == 'true'
137-
run: |
138-
docker push ${{ env.DOCKER_REGISTRY }}/shogun-admin-client-docs:${{ steps.semantic.outputs.new_release_version }}
139-
136+
if: steps.semantic.outputs.new_release_published == 'true'
137+
run: |
138+
docker push ${{ env.DOCKER_REGISTRY }}/shogun-admin-client-docs:${{ steps.semantic.outputs.new_release_version }}

0 commit comments

Comments
 (0)