From bc8ab75c7cf63138f1b9b9a7ec0f9191db0a8fd6 Mon Sep 17 00:00:00 2001 From: Yoshiko2 <42309414+yoshiko2@users.noreply.github.com> Date: Sat, 15 Aug 2020 18:58:40 +0800 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e75555b..56f6863 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,6 +32,7 @@ jobs: - name: Set CLOUDSCRAPER_PATH variable run: | echo "::set-env name=CLOUDSCRAPER_PATH::$(python -c 'import cloudscraper as _; print(_.__path__[0])' | tail -n 1)" + echo "::set-env name=VERSION::$(cat AV_Data_Capture.py | grep "version = " | tr -d "version = '") - name: Build with pyinstaller run: | @@ -47,10 +48,8 @@ jobs: - name: Upload build artifact uses: actions/upload-artifact@v1 - env: - VERSION: $(cat AV_Data_Capture.py | grep "version = " | tr -d "version = '") with: - name: AV_Data_Capture-CLI-$VERSION-Windows + name: AV_Data_Capture-CLI-$env:VERSION-Windows path: dist @@ -77,6 +76,7 @@ jobs: - name: Set CLOUDSCRAPER_PATH variable run: | echo "::set-env name=CLOUDSCRAPER_PATH::$(python -c 'import cloudscraper as _; print(_.__path__[0])' | tail -n 1)" + echo "::set-env name=VERSION::$(cat AV_Data_Capture.py | grep "version = " | tr -d "version = '") - name: Build with pyinstaller run: | @@ -92,10 +92,8 @@ jobs: - name: Upload build artifact uses: actions/upload-artifact@v1 - env: - VERSION: $(cat AV_Data_Capture.py | grep "version = " | tr -d "version = '") with: - name: AV_Data_Capture-CLI-$VERSION-MacOS + name: AV_Data_Capture-CLI-$env:VERSION-MacOS path: dist Linux: @@ -121,6 +119,7 @@ jobs: - name: Set CLOUDSCRAPER_PATH variable run: | echo "::set-env name=CLOUDSCRAPER_PATH::$(python -c 'import cloudscraper as _; print(_.__path__[0])' | tail -n 1)" + echo "::set-env name=VERSION::$(cat AV_Data_Capture.py | grep "version = " | tr -d "version = '") - name: Build with pyinstaller run: | @@ -136,8 +135,6 @@ jobs: - name: Upload build artifact uses: actions/upload-artifact@v1 - env: - VERSION: $(cat AV_Data_Capture.py | grep "version = " | tr -d "version = '") with: - name: AV_Data_Capture-CLI-$VERSION-Linux + name: AV_Data_Capture-CLI-$env:VERSION-Linux path: dist