From 485e044315261830c63870436047641f7337bf5a Mon Sep 17 00:00:00 2001 From: raynardj Date: Wed, 27 Apr 2022 18:06:30 +0800 Subject: [PATCH] publish --- .github/workflows/publish.yml | 25 +++++++++++++++++++ .idea/.gitignore | 2 -- .idea/forgebox.iml | 15 ----------- .../inspectionProfiles/profiles_settings.xml | 6 ----- .idea/misc.xml | 4 --- .idea/modules.xml | 8 ------ .idea/vcs.xml | 6 ----- 7 files changed, 25 insertions(+), 41 deletions(-) create mode 100644 .github/workflows/publish.yml delete mode 100644 .idea/.gitignore delete mode 100644 .idea/forgebox.iml delete mode 100644 .idea/inspectionProfiles/profiles_settings.xml delete mode 100644 .idea/misc.xml delete mode 100644 .idea/modules.xml delete mode 100644 .idea/vcs.xml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..ac6291b --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,25 @@ +name: pypi build +on: + workflow_dispatch: +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: Setup and build + run: | + python -m pip install --upgrade pip + pip install build + pip install wheel + python setup.py sdist bdist_wheel + - name: Publish package + uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 + with: + user: __token__ + password: ${{ secrets.PYPI_SECRET }} \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index e7e9d11..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -# Default ignored files -/workspace.xml diff --git a/.idea/forgebox.iml b/.idea/forgebox.iml deleted file mode 100644 index 4f2c9af..0000000 --- a/.idea/forgebox.iml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml deleted file mode 100644 index 105ce2d..0000000 --- a/.idea/inspectionProfiles/profiles_settings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 18b6107..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 97bc534..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 94a25f7..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file