Skip to content

Commit

Permalink
feat(ci): upload artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
2096779623 committed Jan 28, 2023
1 parent 7537bd9 commit 6d7f80e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/go.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Go
name: Build

on:
push:
Expand All @@ -12,6 +12,7 @@ on:
jobs:

build:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -22,7 +23,15 @@ jobs:
go-version: 1.19

- name: Build
run: go build -v ./...
run: |
mkdir -p dist
go build -o dist/fadian-go -v ./main.go
- name: Test
run: go test -v ./...

- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: fadian-go
path: dist

0 comments on commit 6d7f80e

Please sign in to comment.