From 9625da9221b3bcfb1b0ae0d8c1182c47b55d2687 Mon Sep 17 00:00:00 2001 From: Aria Moradi Date: Mon, 8 Feb 2021 05:10:50 +0330 Subject: [PATCH] [RLEASE CI] add upload release binaries action --- .github/workflows/build.yml | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5e10fe3f..2a9ab22b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -66,19 +66,28 @@ jobs: - name: Create repo artifacts if: github.event_name == 'push' && github.repository == 'AriaMoradi/Tachidesk' + run: | cd master ./.github/scripts/create-repo.sh - - name: Checkout repo branch - if: github.event_name == 'push' && github.repository == 'AriaMoradi/Tachidesk' - uses: actions/checkout@v2 - with: - ref: repo - path: repo +# - name: Checkout repo branch +# if: github.event_name == 'push' && github.repository == 'AriaMoradi/Tachidesk' +# uses: actions/checkout@v2 +# with: +# ref: repo +# path: repo - - name: Deploy repo + - name: Upload release binaries if: github.event_name == 'push' && github.repository == 'AriaMoradi/Tachidesk' - run: | - cd repo - ../master/.github/scripts/commit-repo.sh + uses: alexellis/upload-assets@0.2.2 + env: + GITHUB_TOKEN: ${{ github.token }} + with: + asset_paths: '["./repo/*"]' + +# - name: Deploy repo +# if: github.event_name == 'push' && github.repository == 'AriaMoradi/Tachidesk' +# run: | +# cd repo +# ../master/.github/scripts/commit-repo.sh