فهرست منبع

Use GitHub artifact to upload binary

ayntgl 4 سال پیش
والد
کامیت
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:
 jobs:
   build:
   build:
     strategy:
     strategy:
+      fail-fast: false
       matrix:
       matrix:
         os: [ubuntu-latest, windows-latest, macos-latest]
         os: [ubuntu-latest, windows-latest, macos-latest]
     runs-on: ${{ matrix.os }}
     runs-on: ${{ matrix.os }}
     steps:
     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:
         with:
           go-version: '^1.17'
           go-version: '^1.17'
 
 
       - name: Format
       - name: Format
         run: make fmt
         run: make fmt
 
 
-      - name: Build
-        run: make build
-
       - name: Test
       - name: Test
         run: make test
         run: make test
+
+      - name: Build
+        run: make build
+  
+      - uses: actions/upload-artifact@v2
+        with:
+          name: discordo
+          path: ./discordo