From 932e6a147b1a9bf055b87f2c37b2ec0c9d9c5b76 Mon Sep 17 00:00:00 2001 From: voetberg Date: Mon, 15 Apr 2024 12:18:40 -0500 Subject: [PATCH] Create publish.yml --- .github/workflows/publish.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..78ff5e5 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,30 @@ +name: publish-bench +on: + release: + types: [published] + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.9 + uses: actions/setup-python@v2 + with: + python-version: "3.9" + - name: Install poetry ${{ matrix.poetry-version }} + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' + run: | + python -m ensurepip + python -m pip install --upgrade pip + python -m pip install poetry==1.3.2 + - name: View poetry --help + run: poetry --help + - name: Install dependencies + shell: bash + run: python -m poetry install + - name: Build package + run: python3 -m poetry build + - name: Publish Package + run: python3 -m poetry publish --username=__token__ --password=${{ secrets.PYPI_TOKEN }}