fix: correct order for release

This commit is contained in:
pommee
2025-05-24 07:31:19 +02:00
parent cfe00787fd
commit 0c19ddd55d
3 changed files with 13 additions and 14 deletions

View File

@@ -28,13 +28,6 @@ jobs:
- name: Build website
run: make build
- name: Log in to DockerHub
if: success()
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
with:
@@ -50,3 +43,15 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
curl -sL https://git.io/goreleaser | bash
- name: Log in to DockerHub
if: success()
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
if: success()
run: |
make publish

View File

@@ -11,12 +11,6 @@
"assets": ["CHANGELOG.md"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
[
"@semantic-release/exec",
{
"successCmd": "make publish VERSION=${nextRelease.version}"
}
]
]
}

View File

@@ -10,7 +10,7 @@ publish:
docker buildx build \
--platform linux/amd64,linux/arm64/v8 \
--tag pommee/goaway:latest \
--tag pommee/goaway:${VERSION} \
--push \
.
docker buildx rm multiarch-builder