Update main.yml
This commit is contained in:
32
.github/workflows/main.yml
vendored
32
.github/workflows/main.yml
vendored
@@ -11,14 +11,17 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
Linux:
|
Linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
run: |
|
||||||
|
echo "::set-env name=VERSION::$(cat AV_Data_Capture.py | grep "version = " | tr -d "version = '")"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up Python 3.7
|
- name: Set up Python 3.8
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v1
|
||||||
with:
|
with:
|
||||||
python-version: 3.7
|
python-version: 3.8
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
@@ -32,10 +35,6 @@ 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)"
|
||||||
|
|
||||||
- id : VERSION
|
|
||||||
run: |
|
|
||||||
echo "::set-output name=VERSION::$(cat AV_Data_Capture.py | grep "version = " | tr -d "version = '")"
|
|
||||||
|
|
||||||
- name: Build with pyinstaller
|
- name: Build with pyinstaller
|
||||||
run: |
|
run: |
|
||||||
@@ -52,7 +51,7 @@ jobs:
|
|||||||
- name: Upload build artifact
|
- name: Upload build artifact
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: AV_Data_Capture-CLI-${{ VERSION.output.VERSION }}-Linux
|
name: AV_Data_Capture-CLI-${{ env.run.VERSION }}-Linux
|
||||||
path: dist
|
path: dist
|
||||||
|
|
||||||
|
|
||||||
@@ -63,10 +62,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up Python 3.7
|
- name: Set up Python 3.8
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v1
|
||||||
with:
|
with:
|
||||||
python-version: 3.7
|
python-version: 3.8
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
@@ -80,11 +79,6 @@ 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)"
|
||||||
|
|
||||||
- name : Set Version variable
|
|
||||||
run: |
|
|
||||||
echo "::set-env name=VERSION::$(cat AV_Data_Capture.py | grep "version = " | tr -d "version = '")"
|
|
||||||
output: |
|
|
||||||
|
|
||||||
- name: Build with pyinstaller
|
- name: Build with pyinstaller
|
||||||
run: |
|
run: |
|
||||||
@@ -101,7 +95,7 @@ jobs:
|
|||||||
- name: Upload build artifact
|
- name: Upload build artifact
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: AV_Data_Capture-CLI-${{ needs.Linux.VERSION.output.VESRION }}-Windows
|
name: AV_Data_Capture-CLI-${{ Linux.env.run.VERSION }}-Windows
|
||||||
path: dist
|
path: dist
|
||||||
|
|
||||||
|
|
||||||
@@ -112,10 +106,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up Python 3.7
|
- name: Set up Python 3.8
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v1
|
||||||
with:
|
with:
|
||||||
python-version: 3.7
|
python-version: 3.8
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
@@ -145,5 +139,5 @@ jobs:
|
|||||||
- name: Upload build artifact
|
- name: Upload build artifact
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: AV_Data_Capture-CLI-${{ needs.Linux.VERSION.output.VERSION }}-MacOS
|
name: AV_Data_Capture-CLI-${{ Linux.env.run.VERSIONN }}-MacOS
|
||||||
path: dist
|
path: dist
|
||||||
|
|||||||
Reference in New Issue
Block a user