Update main.yml

This commit is contained in:
Yoshiko2
2020-08-15 18:58:40 +08:00
committed by GitHub
parent ffd312a679
commit bc8ab75c7c

View File

@@ -32,6 +32,7 @@ jobs:
- name: Set CLOUDSCRAPER_PATH variable - name: Set CLOUDSCRAPER_PATH variable
run: | run: |
echo "::set-env name=CLOUDSCRAPER_PATH::$(python -c 'import cloudscraper as _; print(_.__path__[0])' | tail -n 1)" 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 - name: Build with pyinstaller
run: | run: |
@@ -47,10 +48,8 @@ jobs:
- name: Upload build artifact - name: Upload build artifact
uses: actions/upload-artifact@v1 uses: actions/upload-artifact@v1
env:
VERSION: $(cat AV_Data_Capture.py | grep "version = " | tr -d "version = '")
with: with:
name: AV_Data_Capture-CLI-$VERSION-Windows name: AV_Data_Capture-CLI-$env:VERSION-Windows
path: dist path: dist
@@ -77,6 +76,7 @@ jobs:
- name: Set CLOUDSCRAPER_PATH variable - name: Set CLOUDSCRAPER_PATH variable
run: | run: |
echo "::set-env name=CLOUDSCRAPER_PATH::$(python -c 'import cloudscraper as _; print(_.__path__[0])' | tail -n 1)" 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 - name: Build with pyinstaller
run: | run: |
@@ -92,10 +92,8 @@ jobs:
- name: Upload build artifact - name: Upload build artifact
uses: actions/upload-artifact@v1 uses: actions/upload-artifact@v1
env:
VERSION: $(cat AV_Data_Capture.py | grep "version = " | tr -d "version = '")
with: with:
name: AV_Data_Capture-CLI-$VERSION-MacOS name: AV_Data_Capture-CLI-$env:VERSION-MacOS
path: dist path: dist
Linux: Linux:
@@ -121,6 +119,7 @@ jobs:
- name: Set CLOUDSCRAPER_PATH variable - name: Set CLOUDSCRAPER_PATH variable
run: | run: |
echo "::set-env name=CLOUDSCRAPER_PATH::$(python -c 'import cloudscraper as _; print(_.__path__[0])' | tail -n 1)" 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 - name: Build with pyinstaller
run: | run: |
@@ -136,8 +135,6 @@ jobs:
- name: Upload build artifact - name: Upload build artifact
uses: actions/upload-artifact@v1 uses: actions/upload-artifact@v1
env:
VERSION: $(cat AV_Data_Capture.py | grep "version = " | tr -d "version = '")
with: with:
name: AV_Data_Capture-CLI-$VERSION-Linux name: AV_Data_Capture-CLI-$env:VERSION-Linux
path: dist path: dist