Skip to content

Commit

Permalink
Fix issue of goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
undera committed Jul 8, 2023
1 parent 5531286 commit eb51f8a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
branches:
- "*"

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -33,7 +37,7 @@ jobs:
- name: Dry Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
version: "1.18.2"
args: release --snapshot --rm-dist
- name: Test if the Binary is Runnable
run: "dist/helm-dashboard_linux_amd64_v1/helm-dashboard --help"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
version: "1.18.2"
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -50,7 +50,7 @@ jobs:

image:
runs-on: ubuntu-latest
needs: [release, pre_release]
needs: [ release, pre_release ]
timeout-minutes: 60
steps:
- name: Check out the repo
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:

publish_chart:
runs-on: ubuntu-latest
needs: [image, pre_release]
needs: [ image, pre_release ]
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
steps:
- name: Checkout
Expand Down

0 comments on commit eb51f8a

Please sign in to comment.