Skip to content

Commit

Permalink
Optimise Github Release wrokflow
Browse files Browse the repository at this point in the history
ref: #229
  • Loading branch information
Abhinav Grover committed Nov 20, 2023
1 parent b447ea6 commit 41fbaab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on:
jobs:
tests:
name: Go Tests
runs-on: ubuntu-latest
runs-on: self-hosted
timeout-minutes: 60
steps:
- name: Configure git for private modules
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,22 @@ on:

jobs:
goreleaser:
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 2 # Limit the depth of the Git history fetch
- name: Unshallow
run: git fetch --prune --unshallow
- name: Set up Go 1.19
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Clean up
run: |
# Remove unnecessary dependencies or cached files
go clean -modcache
- name: Import GPG key
id: import_gpg
uses: paultyng/ghaction-import-gpg@v2.1.0
Expand Down

0 comments on commit 41fbaab

Please sign in to comment.