Эх сурвалжийг харах

Use GitHub artifact to upload binary

ayntgl 4 жил өмнө
parent
commit
374bc49e6a
1 өөрчлөгдсөн 11 нэмэгдсэн , 7 устгасан
  1. 11 7
      .github/workflows/ci.yml

+ 11 - 7
.github/workflows/ci.yml

@@ -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