Skip to content

Commit

Permalink
Update go_build_release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gek64 committed Oct 20, 2023
1 parent 31ece26 commit 00f71f4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/go_build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup golang
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: '^1.20'

Expand All @@ -47,7 +47,7 @@ jobs:
git clone https://github.com/gek64/gobuilder.git
cd gobuilder
go mod tidy
go build -v -trimpath -ldflags "-s -w -extldflags -static" -o "${{ github.workspace }}/gobuilder_runner"
go build -v -trimpath -ldflags "-s -w" -o "${{ github.workspace }}/gobuilder_runner"
chmod +x "${{ github.workspace }}/gobuilder_runner"
cd ${{ github.workspace }}
Expand All @@ -65,15 +65,15 @@ jobs:
echo "$(go run . -v)" > bin/version.txt
- name: Remove old Releases
uses: dev-drprasad/delete-older-releases@v0.2.0
uses: dev-drprasad/delete-older-releases@v0.3.2
with:
keep_latest: 0
delete_tags: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: build_files
path: bin/*
Expand All @@ -83,10 +83,10 @@ jobs:
needs: build
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Download all artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: build_files
path: bin
Expand All @@ -111,4 +111,4 @@ jobs:
- name: Remove old artifacts
uses: c-hive/gha-remove-artifacts@v1
with:
age: "0s"
age: "0s"

0 comments on commit 00f71f4

Please sign in to comment.