Skip to content

I have built an Action that can help to automatically build a Python project with PyStand. #105

@BHznJNs

Description

@BHznJNs

Here is the action repo link:
https://github.com/BHznJNs/pystand-build


This is the use example which is modified from my own repo:

jobs:
  build:
    runs-on: windows-latest
      - name: Checkout
        uses: actions/checkout@v4

      - name: Build Python Application Standalone Package
        id: pystand-build
        uses: BHznJNs/pystand-build@release-2
        with:
          application-name: "YourApplicationName"
          python-version: "3.11.9"
          requirements-path: "backend/requirements.txt"
          included-files: |
            backend/ # this is the python source directory
            # there can be other assets files or directories here

      - name: Create Zip Archive
        shell: bash
        run: |
          build_path="${{ steps.pystand-build.outputs.build-directory }}"
          (cd "$build_path" && 7z a -tzip "$RUNNER_TEMP/GibberishSubtitle.zip" .)

      # upload package with `${{ runner.temp }}/GibberishSubtitle.zip`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions