diff --git a/.github/workflows/go.yml b/.github/workflows/build.yml similarity index 68% rename from .github/workflows/go.yml rename to .github/workflows/build.yml index 3e9a76d..1235270 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/build.yml @@ -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: @@ -12,6 +12,7 @@ on: jobs: build: + runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -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