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