Update go.yaml
adds artifact upload adds bin/ artifact directory
This commit is contained in:
@@ -28,9 +28,14 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
go get .
|
||||
|
||||
- name: Create artifact directoy
|
||||
run: mkdir bin
|
||||
|
||||
- name: Build
|
||||
run: GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -o bin/spotigram_${{ matrix.os }}_${{ matrix.arch }} -v ./...
|
||||
|
||||
- name: Test
|
||||
run: go test -v ./...
|
||||
|
||||
- name: upload artifacts
|
||||
uses: actions/upload-artifact@v3.1.2
|
||||
with:
|
||||
path: bin/*
|
||||
|
||||
Reference in New Issue
Block a user