Use GitHub artifact to upload binary

This commit is contained in:
ayntgl 2022-01-23 23:06:52 +04:00
parent 3917bbe234
commit 374bc49e6a

View file

@ -4,23 +4,27 @@ on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.17'
- name: Format
run: make fmt
- name: Build
run: make build
- name: Test
run: make test
- name: Build
run: make build
- uses: actions/upload-artifact@v2
with:
name: discordo
path: ./discordo