Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
gek64 committed Oct 20, 2023
1 parent 11ab29f commit 1b66ef2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 21 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/artifacts_cleanup.yml

This file was deleted.

23 changes: 16 additions & 7 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ 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.17'
go-version: '^1.20'

- name: Build
run: |
Expand Down Expand Up @@ -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 @@ -103,3 +103,12 @@ jobs:
artifacts: "bin/*"
tag: ${{ env.VERSION }}
token: ${{ secrets.GITHUB_TOKEN }}

delete-artifacts:
runs-on: ubuntu-latest
needs: release
steps:
- name: Remove old artifacts
uses: c-hive/gha-remove-artifacts@v1
with:
age: "0s"

0 comments on commit 1b66ef2

Please sign in to comment.