Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
QwaSeeK authored and jethome-bot committed Mar 1, 2025
1 parent 2b343ec commit eaa5ac3
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/jh-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: JH build
2 21name: JH build

on:
release:
Expand All @@ -7,7 +7,6 @@ on:
branches: ["main-jethub"]
workflow_dispatch:


env:
GOLANG_VERSION: "1.20"

Expand All @@ -28,26 +27,26 @@ jobs:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}

- name: Setup go ${{ env.GOLANG_VERSION }}
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: ${{ env.GOLANG_VERSION }}

- name: Run GoReleaser build
uses: goreleaser/goreleaser-action@v4.4.0
uses: goreleaser/goreleaser-action@v6.0.0
if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
with:
args: build --snapshot --clean

- name: Run GoReleaser release
uses: goreleaser/goreleaser-action@v4.4.0
uses: goreleaser/goreleaser-action@v6.0.0
if: github.event_name == 'release'
with:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}

- uses: robinraju/release-downloader@v1.8
- uses: robinraju/release-downloader@v1.11
with:
repository: ${{ github.repository }}
latest: true
Expand All @@ -73,7 +72,7 @@ jobs:
branch: test

- name: Upload packets
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: debs
path: debs

0 comments on commit eaa5ac3

Please sign in to comment.