Skip to content

Commit cc957cb

Browse files
authored
Merge pull request #39 from Nightapes/fix/ci
ci(upload-artifacts): always upload artifact and build docker image f…
2 parents 0aa8146 + cf87c74 commit cc957cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -o build/go-semantic-release.windows_x86_64.exe -ldflags "-w -s -X main.version=`./build/go-semantic-release-temp next`" ./cmd/go-semantic-release/
3838
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -o build/go-semantic-release.darwin_x86_64 -ldflags "-w -s -X main.version=`./build/go-semantic-release-temp next`" ./cmd/go-semantic-release/
3939
- name: Build Docker image
40-
if: github.ref != 'refs/heads/master' && matrix.go == '1.14'
40+
if: matrix.go == '1.14'
4141
run: |
4242
docker login -u nightapes -p ${{ secrets.DOCKER_PASSWORD }}
4343
docker login -u nightapes -p ${{ secrets.GITHUB_TOKEN }} docker.pkg.github.com
@@ -46,7 +46,7 @@ jobs:
4646
docker tag nightapes/go-semantic-release:development-${{matrix.go}} docker.pkg.github.com/nightapes/go-semantic-release/go-semantic-release:development-${{matrix.go}}
4747
docker push docker.pkg.github.com/nightapes/go-semantic-release/go-semantic-release:development-${{matrix.go}}
4848
- uses: actions/upload-artifact@v1
49-
if: github.ref != 'refs/heads/master' && matrix.go == '1.14'
49+
if: matrix.go == '1.14'
5050
with:
5151
name: build
5252
path: build

0 commit comments

Comments
 (0)