From fdca2d79f9d246cf94ce30d2592626f44895bb5a Mon Sep 17 00:00:00 2001 From: David Brownell Date: Thu, 4 Jan 2024 06:13:06 -0500 Subject: [PATCH] wip --- .github/actions/validate/action.yml | 14 ---------- .github/workflows/standard.yaml | 41 +++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 14 deletions(-) diff --git a/.github/actions/validate/action.yml b/.github/actions/validate/action.yml index bd72a0f..f790c71 100644 --- a/.github/actions/validate/action.yml +++ b/.github/actions/validate/action.yml @@ -66,17 +66,3 @@ runs: python Build.py Test --min-coverage 50.0 # BugBug python Build.py Test --min-coverage 90.0 - - - name: Update Version - shell: ${{ inputs.shell_name }} - run: |- - ${{ inputs.source_command }} ${{ inputs.script_prefix }}Activate${{ inputs.script_extension }} - python Build.py UpdateVersion - - - name: Package - shell: ${{ inputs.shell_name }} - run: |- - ${{ inputs.source_command }} ${{ inputs.script_prefix }}Activate${{ inputs.script_extension }} - python Build.py Package - - # TODO: Upload package diff --git a/.github/workflows/standard.yaml b/.github/workflows/standard.yaml index 02ba3e0..b05901e 100644 --- a/.github/workflows/standard.yaml +++ b/.github/workflows/standard.yaml @@ -79,3 +79,44 @@ jobs: shell_name: ${{ steps.initialize.outputs.shell_name }} source_command: ${{ steps.initialize.outputs.source_command }} sudo_command: ${{ steps.initialize.outputs.sudo_command }} + + package: + needs: standard + + name: "Package" + runs-on: ubuntu-latest + + env: + COLUMNS: "200" + SIMULATE_TERMINAL_CAPABILITIES_SUPPORTS_COLORS: "1" + PYTHONIOENCODING: "UTF-8" + + steps: + - name: "Checkout Source" + uses: actions/checkout@v4 + + - name: Initialize + id: Initialize + uses: davidbrownell/PythonBootstrapper/.github/actions/initialize@main + with: + operating_system: ${{ matrix.os }} + + - name: Bootstrap + shell: ${{ inputs.shell_name }} + run: |- + ${{ inputs.script_prefix }}Bootstrap${{ inputs.script_extension }} --python-version ${{ inputs.python_version }} + + - name: Update Version + shell: ${{ inputs.shell_name }} + run: |- + ${{ inputs.source_command }} ${{ inputs.script_prefix }}Activate${{ inputs.script_extension }} + python Build.py UpdateVersion + + - name: Package + shell: ${{ inputs.shell_name }} + run: |- + ${{ inputs.source_command }} ${{ inputs.script_prefix }}Activate${{ inputs.script_extension }} + python Build.py Package + + # TODO: Upload package + # TODO: Publish package (if push to main)