From 98ab72da9b7d5fb02a00cf13d49837b9a5eb3202 Mon Sep 17 00:00:00 2001 From: panyi Date: Fri, 2 Aug 2024 16:45:07 +0800 Subject: [PATCH] test --- .../workflows/publish-to-fofa-hack-pypi.yml | 50 +++++++++---------- test.py | 2 +- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/.github/workflows/publish-to-fofa-hack-pypi.yml b/.github/workflows/publish-to-fofa-hack-pypi.yml index 4538a33..859803b 100644 --- a/.github/workflows/publish-to-fofa-hack-pypi.yml +++ b/.github/workflows/publish-to-fofa-hack-pypi.yml @@ -1,30 +1,30 @@ -name: Publish Python 🐍 distributions 📦 to PyPI +name: Publish -on: - push: - branches: - - test +on: push -jobs: - build-n-publish: - name: Build and publish Python 🐍 distributions 📦 to PyPI - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v2 - - name: Set up Python 3.8 - uses: actions/setup-python@v1 - with: - python-version: 3.8 +jobs: + build: - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt + runs-on: ubuntu-latest - - name: Publish distribution 📦 to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} + 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/test.py b/test.py index 02b3b97..ec7f3a0 100644 --- a/test.py +++ b/test.py @@ -1 +1 @@ -# edit test py 2 \ No newline at end of file +# edit test py 3 \ No newline at end of file