diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1d597153..b9d7c782 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,8 +1,12 @@ name: Build PROS CLI on: + # make github actions run on every push and every tag push: - pull_request: + tags: + - '*' + branches: + - '**' jobs: update_build_number: @@ -17,7 +21,8 @@ jobs: id: step1 run: | python3 version.py - echo "::set-output name=test::$(cat version)" + echo "test=$(cat version)" >> $GITHUB_OUTPUT + if: github.ref_type != 'tag' build: needs: update_build_number @@ -62,7 +67,7 @@ jobs: - name: Run Pyinstaller run: | - python3 version.py + # python3 version.py pyinstaller pros.spec pyinstaller --onefile pros/cli/compile_commands/intercept-cc.py --name=intercept-cc pyinstaller --onefile pros/cli/compile_commands/intercept-cc.py --name=intercept-c++ @@ -73,7 +78,7 @@ jobs: pip3 uninstall -y charset_normalizer git clone https://github.com/Ousret/charset_normalizer.git pip3 install -e ./charset_normalizer - python3 version.py + # python3 version.py pyinstaller pros-macos.spec pyinstaller --onefile pros/cli/compile_commands/intercept-cc.py --name=intercept-cc --target-arch=universal2 pyinstaller --onefile pros/cli/compile_commands/intercept-cc.py --name=intercept-c++ --target-arch=universal2 @@ -91,3 +96,10 @@ jobs: with: name: ${{ matrix.os }}-${{needs.update_build_number.outputs.output1}} path: dist/* + if: matrix.os != 'macos-latest' + - name: Upload Artifact (Tagged Version Naming) + uses: actions/upload-artifact@v3.1.0 + with: + name: ${{ matrix.os }}-${{github.ref_name}} + path: dist/* + if: github.ref_type == 'tag' diff --git a/pip_version b/pip_version index a423d421..6cb9d3dd 100644 --- a/pip_version +++ b/pip_version @@ -1 +1 @@ -3.4.2 \ No newline at end of file +3.4.3 diff --git a/version b/version index a423d421..6cb9d3dd 100644 --- a/version +++ b/version @@ -1 +1 @@ -3.4.2 \ No newline at end of file +3.4.3 diff --git a/win_version b/win_version index 0ccc3dcd..03f59952 100644 --- a/win_version +++ b/win_version @@ -1 +1 @@ -3.4.2.0 \ No newline at end of file +3.4.3.0