Skip to content

Commit

Permalink
ci: update
Browse files Browse the repository at this point in the history
  • Loading branch information
BaiMeow committed Mar 18, 2024
1 parent cd9a0c2 commit 418a227
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ jobs:
name: Build Binary
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.16
uses: actions/setup-go@v1
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.16
go-version: '^1.16'
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Get dependencies
run: |
Expand All @@ -27,7 +27,7 @@ jobs:
CGO_ENABLED=0 go build -v -ldflags "-w -s -extldflags '-static' -X 'github.com/NekoWheel/NekoCAS/internal/conf.CommitSHA=$GITHUB_SHA'" -o NekoCAS .
pwd
- name: Archive production artifacts
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: NekoCAS
path: /home/runner/work/NekoCAS/NekoCAS
Expand All @@ -38,7 +38,7 @@ jobs:
needs: build
steps:
- name: Get artifacts
uses: actions/download-artifact@master
uses: actions/download-artifact@v4
with:
name: NekoCAS
path: /home/runner/work/NekoCAS/NekoCAS
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v2.4.0
uses: golangci/golangci-lint-action@v4
with:
version: v1.37.0
version: latest
args: --timeout=30m

0 comments on commit 418a227

Please sign in to comment.