Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
adeepn committed Sep 5, 2023
1 parent 8af0647 commit e7a2f24
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/jh-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ on:


env:
GOLANG_VERSION: "1.16"
GOLANG_VERSION: "1.20"

jobs:
build:
name: Build OS-Agent
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3.5.0
uses: actions/checkout@v4
with:
fetch-depth: 0 # Needed for changelog generation

Expand All @@ -33,20 +33,21 @@ jobs:
go-version: ${{ env.GOLANG_VERSION }}

- name: Run GoReleaser build
uses: goreleaser/goreleaser-action@v4.2.0
uses: goreleaser/goreleaser-action@v4.4.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.2.0
uses: goreleaser/goreleaser-action@v4.4.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/[email protected]

- uses: robinraju/[email protected]
with:
repository: ${{ github.repository }}
latest: true
Expand All @@ -72,7 +73,7 @@ jobs:
branch: test

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

0 comments on commit e7a2f24

Please sign in to comment.