diff --git a/.github/workflows/exe.yml b/.github/workflows/exe.yml new file mode 100644 index 00000000..588c491c --- /dev/null +++ b/.github/workflows/exe.yml @@ -0,0 +1,31 @@ +name: BuildEXE + +on: push +jobs: + build: + runs-on: windows-latest + steps: + - name: 检出代码 + uses: actions/checkout@v2 + + - name: 设置 Python 3 + uses: actions/setup-python@v4 + with: + python-version: '3.8' + + - name: 安装依赖 + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install pyinstaller + + - name: 使用 PyInstaller 打包 + run: | + pyinstaller -F fofa.py + + - name: 上传可执行文件作为工件 + uses: actions/upload-artifact@v4 + with: + name: executable + path: dist\fofa.exe + retention-days: 1 \ No newline at end of file diff --git a/.github/workflows/publish-to-fofa-hack-pypi.yml b/.github/workflows/publish-to-fofa-hack-pypi.yml deleted file mode 100644 index 859803b0..00000000 --- a/.github/workflows/publish-to-fofa-hack-pypi.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Publish - -on: push - - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Set up Python 3 - uses: actions/setup-python@v1 - with: - python-version: 3.8 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - - name: Build wheels and source tarball - run: | - python setup.py sdist build - - name: Publish open-autonomy Framework to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} - skip_existing: true - packages_dir: dist/ \ No newline at end of file diff --git a/.gitignore b/.gitignore index fb5fdec5..51d5984d 100644 --- a/.gitignore +++ b/.gitignore @@ -134,3 +134,4 @@ dmypy.json # Pyre type checker .pyre/ +/fofa.iml